From 25c6a6704c6a9030cd0d27666b7d042f7d62151d Mon Sep 17 00:00:00 2001 From: didier Date: Wed, 10 Mar 2021 23:47:34 +0000 Subject: [PATCH] merge main branch with prompt toolkit to ca branch --- terminal.py | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/terminal.py b/terminal.py index 1af81d42c0a..a4e13d7a71f 100644 --- a/terminal.py +++ b/terminal.py @@ -46,27 +46,25 @@ def main(): # Add list of arguments that the main parser accepts menu_parser = argparse.ArgumentParser(prog="gamestonk_terminal", add_help=False) - menu_parser.add_argument( - "opt", - choices=[ - "help", - "quit", - "q", - "clear", - "load", - "view", - "export", - "disc", - "mill", - "sen", - "res", - "ca", - "fa", - "ta", - "dd", - "pred", - ], - ) + choices = [ + "help", + "quit", + "q", + "clear", + "load", + "view", + "export", + "disc", + "mill", + "sen", + "res", + "fa", + "ta", + "dd", + "pred", + ] + menu_parser.add_argument("opt", choices=choices) + word_completer = WordCompleter(choices) # Print first welcome message and help print("\nWelcome to Gamestonk Terminal 🚀\n")