refactor: update --gui/--browser to use BooleanOptionalAction

This commit is contained in:
Paul Gauthier (aider) 2024-10-31 15:01:29 -07:00
parent 401967c27f
commit 27711010a0

View file

@ -701,9 +701,9 @@ def get_parser(default_config_files, git_root):
)
group.add_argument(
"--gui",
"--browser", # ai turn into a boolean!
action="store_true",
help="Run aider in your browser",
"--browser",
action=argparse.BooleanOptionalAction,
help="Run aider in your browser (default: False)",
default=False,
)
group.add_argument(