better code
This commit is contained in:
parent
35a58d4952
commit
ff62762484
|
@ -660,8 +660,7 @@ def help(args):
|
|||
print('image-index update tags -Tag -t Example (removes the tag "Tag")\n')
|
||||
if not args:
|
||||
print("SYNTAX: image-index <option> [args]")
|
||||
print("OPTIONS:\n\thelp:\tdisplays this text")
|
||||
print("\t\tSyntax: image-index help [commands]")
|
||||
print("OPTIONS:\n\thelp:\tdisplays helpful text\}n\t\tSyntax: image-index help [commands]")
|
||||
print("\tmeta:\tdisplays help for the metadata tables")
|
||||
print("\tadd:\tadds a new entry;\n\t\tSyntax: image-index add <filepath> <category> <title> <source> <tags> <content>")
|
||||
print("\tcheck:\tchecks the existence and correctness of all files in the index;\n\t\tSyntax: image-index check [options]")
|
||||
|
@ -673,6 +672,8 @@ def help(args):
|
|||
|
||||
def imports(args):
|
||||
for arg in args:
|
||||
if arg[-1] != "/":
|
||||
arg+="/"
|
||||
if os.path.exists(arg):
|
||||
if not Path(arg).is_file():
|
||||
for sfile in os.listdir(arg):
|
||||
|
|
Loading…
Reference in a new issue