small help improvements
This commit is contained in:
parent
19c80e6799
commit
302e2d12de
20
image-index
20
image-index
|
@ -592,8 +592,10 @@ def help(args):
|
|||
print("\tPrompt: image-index open")
|
||||
print("EXAMPLE:\nimage-index open example -s example.org -i an example\n")
|
||||
elif re.match('[sS].*',arg):
|
||||
print("show:\tsearches through the index and shows the matches (use prompt for list of filters);\n\tInstant: image-index show <words/filters>")
|
||||
print("show:\tsearches through the index and shows the matches;\n\tInstant: image-index show <words/filters>")
|
||||
print("\tPrompt: image-index show")
|
||||
print("FILTERS: -a: All types\n\t -c: Category\n\t -f: Filename\n\t -g: Tags")
|
||||
print("\t -h: Hash\n\t -i: Content\n\t -s: Source\n\t -t: Title")
|
||||
print("EXAMPLE:\nimage-index show example -c category\n")
|
||||
elif re.match('[uU].*',arg):
|
||||
print("update:\tchanges specific column based on a search query;\n\tInstant: image-index update <column> <updated_value> <words/filters>")
|
||||
|
@ -683,8 +685,8 @@ def meta_help():
|
|||
print("OPTIONS:\n\thelp:\tdisplays this text")
|
||||
print("\tcheck:\tcheck which items don't have an entry yet;\n\t\tSyntax: image-index meta check <Category/Tags>")
|
||||
print("\tupdate:\tchange an alias of one entry based on a search query;\n\t\tSyntax: image-index update <Category/Tags> [entry] [alias]")
|
||||
print('\t\tExample: image-index meta update tags Example "New alias"')
|
||||
print('\t\t\t image-index meta update category "A Category" "Example Category"\n')
|
||||
print('\t\tExamples: image-index meta update tags Example "New alias"')
|
||||
print('\t\t\t image-index meta update category "A Category" "Example Category"\n')
|
||||
|
||||
def sopen(args):
|
||||
plat=sys.platform
|
||||
|
@ -732,15 +734,9 @@ def repair(err_list):
|
|||
|
||||
def search(args,quiet=False):
|
||||
if len(args) == 0:
|
||||
print("Separate the items with spaces ( )")
|
||||
print("FILTERS: -a: All types")
|
||||
print("\t -c: Category")
|
||||
print("\t -f: Filename")
|
||||
print("\t -g: Tags")
|
||||
print("\t -h: Hash")
|
||||
print("\t -i: Content")
|
||||
print("\t -s: Source")
|
||||
print("\t -t: Title")
|
||||
print("Separate the items with spaces.")
|
||||
print("FILTERS: -a: All types\n\t -c: Category\n\t -f: Filename\n\t -g: Tags")
|
||||
print("\t -h: Hash\n\t -i: Content\n\t -s: Source\n\t -t: Title")
|
||||
args=input("Query: ")
|
||||
if len(args) > 0:
|
||||
res=tb.search_index(args.split(' '),quiet)
|
||||
|
|
Loading…
Reference in a new issue