From 27711010a0813618de75c5709845e2e27dd2de4c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 31 Oct 2024 15:01:29 -0700 Subject: [PATCH] refactor: update --gui/--browser to use BooleanOptionalAction --- aider/args.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/args.py b/aider/args.py index 752360189..c02254e49 100644 --- a/aider/args.py +++ b/aider/args.py @@ -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(