idk probably just comments

master
BodgeMaster 2021-12-11 08:27:26 +01:00
parent 86ae33a18d
commit ebabc961fb
1 changed files with 2 additions and 1 deletions

View File

@ -194,6 +194,7 @@ if __name__ == "__main__":
"""+sys.argv[0]+""" help - display this message
"""
#TODO: +path modifier for things that return a hash to return the path to the stored file instead
#TODO: +hash and +tags modifier for lookup
#TODO: condense modifiers onto the same lines as the main subcommand where possible
#TODO: clarification of <> and []
#TODO: subcommand to change container settings
@ -345,6 +346,7 @@ if __name__ == "__main__":
# modifiers:
# first - only return one file
# unique - return error if not found or multiple found
#TODO: modifiers
if command[0] == "lookup":
if len(sys.argv)<4:
print("Too few arguments!", file=sys.stderr)
@ -362,7 +364,6 @@ if __name__ == "__main__":
sys.exit(status)
file_tags_or_hash = sys.argv[3:]
#TODO: basically everything
if file_is_in_storage(storage_directory, file_tags_or_hash[0], compress):
tags = get_tags_by_hash(storage_directory, file_tags_or_hash[0])
print("Tags for file:")