Make lexicon name optional, some commands may not need it

This commit is contained in:
Tim Van Baak 2020-01-01 17:21:20 -08:00
parent e4e3e45217
commit b57631d052
1 changed files with 2 additions and 1 deletions

View File

@ -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",