From b57631d0525f8c336533c6438040374c24150071 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 1 Jan 2020 17:21:20 -0800 Subject: [PATCH] Make lexicon name optional, some commands may not need it --- amanuensis/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amanuensis/__main__.py b/amanuensis/__main__.py index 644198f..328e020 100644 --- a/amanuensis/__main__.py +++ b/amanuensis/__main__.py @@ -47,8 +47,9 @@ def get_parser(valid_commands): parser = argparse.ArgumentParser( description="Available commands:\n{}\n".format(command_descs), formatter_class=argparse.RawDescriptionHelpFormatter) - parser.add_argument("lexicon", + parser.add_argument("-n", metavar="LEXICON", + dest="lexicon", help="The name of the lexicon to operate on") parser.add_argument("-v", action="store_true",