Skip to content

Commit

Permalink
rename --yes to --yes-always Aider-AI#767
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier authored and mbailey committed Oct 8, 2024
1 parent fb7c654 commit 871dbc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion aider/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions aider/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 871dbc2

Please sign in to comment.