From 16635d2e7399cfc03dc58ee0a429c02891d9b239 Mon Sep 17 00:00:00 2001 From: Gustavo Romero Date: Wed, 20 Oct 2021 14:34:01 +0000 Subject: [PATCH] areusch review: s/-o/--project-option/ as an arg name to keep the code more readable --- python/tvm/driver/tvmc/micro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/tvm/driver/tvmc/micro.py b/python/tvm/driver/tvmc/micro.py index b880cbb007a18..c1c83a05974bb 100644 --- a/python/tvm/driver/tvmc/micro.py +++ b/python/tvm/driver/tvmc/micro.py @@ -195,7 +195,7 @@ def _add_parser(parser, platform): # TODO(gromero): Experiment with required=required below parser_by_subcmd_n_platform.add_argument( - "-o", required=True, metavar="OPTION=VALUE", nargs=nargs, help=help_text + "--project-option", required=True, metavar="OPTION=VALUE", nargs=nargs, help=help_text ) @@ -222,7 +222,7 @@ def create_project_handler(args): if not os.path.exists(mlf_path): raise TVMCException(f"MLF file {mlf_path} does not exist!") - options = get_options(args.o) + options = get_options(args.project_option) check_options(options, args.valid_options) check_options_choices(options, args.valid_options) @@ -247,7 +247,7 @@ def build_handler(args): project_dir = args.project_dir - options = get_options(args.o) + options = get_options(args.project_option) check_options(options, args.valid_options) check_options_choices(options, args.valid_options) @@ -265,7 +265,7 @@ def flash_handler(args): project_dir = args.project_dir - options = get_options(args.o) + options = get_options(args.project_option) check_options(options, args.valid_options) check_options_choices(options, args.valid_options)