Skip to content

Commit

Permalink
areusch review: s/-o/--project-option/ as an arg name to keep the cod…
Browse files Browse the repository at this point in the history
…e more readable
  • Loading branch information
gromero committed Oct 22, 2021
1 parent 0faa00e commit 16635d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tvm/driver/tvmc/micro.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 16635d2

Please sign in to comment.