Make lexicon name optional, some commands may not need it
This commit is contained in:
parent
e4e3e45217
commit
b57631d052
|
@ -47,8 +47,9 @@ def get_parser(valid_commands):
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Available commands:\n{}\n".format(command_descs),
|
description="Available commands:\n{}\n".format(command_descs),
|
||||||
formatter_class=argparse.RawDescriptionHelpFormatter)
|
formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||||
parser.add_argument("lexicon",
|
parser.add_argument("-n",
|
||||||
metavar="LEXICON",
|
metavar="LEXICON",
|
||||||
|
dest="lexicon",
|
||||||
help="The name of the lexicon to operate on")
|
help="The name of the lexicon to operate on")
|
||||||
parser.add_argument("-v",
|
parser.add_argument("-v",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
Loading…
Reference in New Issue