From bcd6c66a083bbd97d2f25bb842534f7ae9dc4465 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 10 Jun 2020 21:47:54 +0000 Subject: [PATCH] fixed more bugs with tra-cli.py Signed-off-by: Arthur Lu --- data-analysis/tra-cli.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/data-analysis/tra-cli.py b/data-analysis/tra-cli.py index 0510db8f..34d7192a 100644 --- a/data-analysis/tra-cli.py +++ b/data-analysis/tra-cli.py @@ -11,16 +11,15 @@ parser = argparse.ArgumentParser(prog = "TRA") subparsers = parser.add_subparsers(title = "command", metavar = "C", help = "//commandhelp//") parser_start = subparsers.add_parser("start", help = "//starthelp//") -parser_start.add_argument("target(s)", metavar = "T", nargs = "*", choices = task_map.keys()) +parser_start.add_argument("targets", metavar = "T", nargs = "*", choices = task_map.keys()) parser_start.set_defaults(which = "start") parser_stop = subparsers.add_parser("stop", help = "//stophelp//") -parser_stop.add_argument("target(s)", metavar = "T", nargs = "*", choices = task_map.keys()) +parser_stop.add_argument("targets", metavar = "T", nargs = "*", choices = task_map.keys()) parser_stop.set_defaults(which = "stop") parser_status = subparsers.add_parser("status", help = "//stophelp//") -parser_status.add_argument("target(s)", metavar = "T", nargs = "*", choices = status_map.keys()) +parser_status.add_argument("targets", metavar = "T", nargs = "*", choices = status_map.keys()) parser_status.set_defaults(which = "status") -options = parser.parse_args() -print(options) \ No newline at end of file +args = parser.parse_args() \ No newline at end of file