Skip to content

Commit

Permalink
revert: undo default and choices change to cli.py
Browse files Browse the repository at this point in the history
This is being removed from this PR in favor of a standalone fix in #511
  • Loading branch information
ericrallen committed Sep 25, 2023
1 parent 96d3a85 commit 82e5839
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions interpreter/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ def cli(interpreter):
if arg["type"] == bool:
parser.add_argument(f'-{arg["nickname"]}', f'--{arg["name"]}', dest=arg["name"], help=arg["help_text"], action='store_true')
else:
choices = arg["choices"] if "choices" in arg else None
default = arg["default"] if "default" in arg else None

parser.add_argument(f'-{arg["nickname"]}', f'--{arg["name"]}', dest=arg["name"], help=arg["help_text"], type=arg["type"], choices=choices, default=default)
parser.add_argument(f'-{arg["nickname"]}', f'--{arg["name"]}', dest=arg["name"], help=arg["help_text"], type=arg["type"])

# Add special arguments
parser.add_argument('--config', dest='config', action='store_true', help='open config.yaml file in text editor')
Expand Down

0 comments on commit 82e5839

Please sign in to comment.