Small aesthetic tweaks.

This commit is contained in:
voussoir 2021-09-30 14:43:45 -07:00
parent 2c321e8faa
commit 72be07bdb7
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -137,7 +137,7 @@ def search_by_argparse(args, yield_albums=False, yield_photos=False):
yield_photos=yield_photos,
)
####################################################################################################
# ARGPARSE #########################################################################################
def add_remove_tag_argparse(args, action):
photodb = etiquette.photodb.PhotoDB.closest_photodb()
@ -1004,7 +1004,7 @@ def main(argv):
##
def pp(args):
def postprocessor(args):
args.photo_search_args = p_search.parse_args(photo_search_args) if photo_search_args else None
args.album_search_args = p_search.parse_args(album_search_args) if album_search_args else None
args.photo_id_args = [id for arg in photo_id_args for id in stringtools.comma_space_split(arg)]
@ -1023,7 +1023,7 @@ def main(argv):
parser,
main_docstring=DOCSTRING,
sub_docstrings=SUB_DOCSTRINGS,
args_postprocessor=pp,
args_postprocessor=postprocessor,
)
except etiquette.exceptions.NoClosestPhotoDB as exc:
pipeable.stderr(exc.error_message)