Skip to content

Commit

Permalink
Merge pull request #1577 from Aakash3101/getopts
Browse files Browse the repository at this point in the history
Fixes #1572
  • Loading branch information
henrykironde committed Apr 6, 2021
2 parents bb06180 + 3d51e3f commit 58525bf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions retriever/lib/get_opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
script_list.extend(get_dataset_names_upstream())
script_list = sorted(set(script_list))

# set of all possible licenses and keywords
# set of all possible licenses, keywords and scripts
licenses_options = set(licenses_list)
keywords_options = set(keywords_list)
scripts_options = script_list

parser = argparse.ArgumentParser(prog="retriever")
parser.add_argument('-v', '--version', action='version', version=VERSION)
Expand Down Expand Up @@ -121,10 +122,8 @@
nargs='+').completer = ChoicesCompleter(list(licenses_options))
ls_parser.add_argument('-k', help='search datasets with keyword(s)',
nargs='+').completer = ChoicesCompleter(list(keywords_options))
ls_parser.add_argument('-v',
help='verbose list of all datasets',
nargs='*',
default=False)
ls_parser.add_argument('-v', help='verbose list of specified dataset(s)',
nargs='+').completer = ChoicesCompleter(list(scripts_options))

autocreate_parser.add_argument('path', help='path to the data file(s)')
autocreate_parser.add_argument('-dt',
Expand Down

0 comments on commit 58525bf

Please sign in to comment.