From aa987a5b4bfb6b35004f1910e678dc9ea239794b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 20 Jan 2020 02:31:19 -0800 Subject: [PATCH] Fix repl --- amanuensis/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amanuensis/__main__.py b/amanuensis/__main__.py index c30b207..79996bd 100644 --- a/amanuensis/__main__.py +++ b/amanuensis/__main__.py @@ -16,11 +16,11 @@ def repl(args): if name.startswith("command_")} commands['help'] = "Print this message" commands['exit'] = "Exit" - print("Amanuensis running on Lexicon {}".format(args.lexicon)) + print("Amanuensis running on Lexicon {}".format(args.tl_lexicon)) while True: # Read input in a loop. try: - data = input("{}> ".format(args.lexicon)) + data = input("{}> ".format(args.tl_lexicon)) except EOFError: print() break @@ -84,7 +84,7 @@ def get_parser(valid_commands): metavar="USERNAME", dest="tl_username", help="Specify a user to operate on") - parser.set_defaults(func=lambda args: repl(args) if args.lexicon else parser.print_help()) + parser.set_defaults(func=lambda args: repl(args) if args.tl_lexicon else parser.print_help()) subp = parser.add_subparsers( metavar="COMMAND", dest="command",