mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +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",
|
description="aider is AI pair programming in your terminal",
|
||||||
add_config_file_help=True,
|
add_config_file_help=True,
|
||||||
default_config_files=default_config_files,
|
default_config_files=default_config_files,
|
||||||
|
config_file_parser_class=configargparse.YAMLConfigFileParser,
|
||||||
auto_env_var_prefix="AIDER_",
|
auto_env_var_prefix="AIDER_",
|
||||||
)
|
)
|
||||||
group = parser.add_argument_group("Main")
|
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)",
|
help="Apply the changes from the given file instead of running the chat (debug)",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--yes",
|
"--yes-always",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Always say yes to every confirmation",
|
help="Always say yes to every confirmation",
|
||||||
default=None,
|
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.assistant_output_color = "blue"
|
||||||
args.code_theme = "default"
|
args.code_theme = "default"
|
||||||
|
|
||||||
if return_coder and args.yes is None:
|
if return_coder and args.yes_always is None:
|
||||||
args.yes = True
|
args.yes_always = True
|
||||||
|
|
||||||
editing_mode = EditingMode.VI if args.vim else EditingMode.EMACS
|
editing_mode = EditingMode.VI if args.vim else EditingMode.EMACS
|
||||||
|
|
||||||
def get_io(pretty):
|
def get_io(pretty):
|
||||||
return InputOutput(
|
return InputOutput(
|
||||||
pretty,
|
pretty,
|
||||||
args.yes,
|
args.yes_always,
|
||||||
args.input_history_file,
|
args.input_history_file,
|
||||||
args.chat_history_file,
|
args.chat_history_file,
|
||||||
input=input,
|
input=input,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue