mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
rename --yes
to --yes-always
#767
This commit is contained in:
parent
8dfda27151
commit
d4fe0b18ad
2 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue