From d4fe0b18adbd035b16b4aa824a5cde6c18b4ffb3 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 2 Oct 2024 10:45:11 -0700 Subject: [PATCH] rename `--yes` to `--yes-always` #767 --- aider/args.py | 3 ++- aider/main.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/aider/args.py b/aider/args.py index 3b7bc8827..567160abe 100644 --- a/aider/args.py +++ b/aider/args.py @@ -25,6 +25,7 @@ def get_parser(default_config_files, git_root): description="aider is AI pair programming in your terminal", add_config_file_help=True, default_config_files=default_config_files, + config_file_parser_class=configargparse.YAMLConfigFileParser, auto_env_var_prefix="AIDER_", ) group = parser.add_argument_group("Main") @@ -611,7 +612,7 @@ def get_parser(default_config_files, git_root): help="Apply the changes from the given file instead of running the chat (debug)", ) group.add_argument( - "--yes", + "--yes-always", action="store_true", help="Always say yes to every confirmation", default=None, diff --git a/aider/main.py b/aider/main.py index f71a51399..13501847a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -402,15 +402,15 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F args.assistant_output_color = "blue" args.code_theme = "default" - if return_coder and args.yes is None: - args.yes = True + if return_coder and args.yes_always is None: + args.yes_always = True editing_mode = EditingMode.VI if args.vim else EditingMode.EMACS def get_io(pretty): return InputOutput( pretty, - args.yes, + args.yes_always, args.input_history_file, args.chat_history_file, input=input,