Skip to content

Commit

Permalink
Update cli.py with inline comments (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergennachin authored Apr 16, 2024
1 parent 3b73d38 commit e554364
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,24 @@ def check_args(args, command_name: str):


def add_arguments_for_generate(parser):
# Only generate specific options should be here
_add_arguments_common(parser)


def add_arguments_for_eval(parser):
# Only eval specific options should be here
_add_arguments_common(parser)


def add_arguments_for_export(parser):
# Only export specific options should be here
_add_arguments_common(parser)


def _add_arguments_common(parser):
# TODO: Refactor this so that only common options are here
# and subcommand-specific options are inside individual
# add_arguments_for_generate, add_arguments_for_export etc.
parser.add_argument(
"--seed",
type=int,
Expand Down

0 comments on commit e554364

Please sign in to comment.