mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
refactor: rename copypaste flag to copy-paste and update help text
This commit is contained in:
parent
623770e24b
commit
6efdf8a7f4
2 changed files with 5 additions and 5 deletions
|
@ -536,10 +536,10 @@ def get_parser(default_config_files, git_root):
|
|||
help="Enable/disable watching files for ai coding comments (default: False)",
|
||||
)
|
||||
group.add_argument(
|
||||
"--copypaste",
|
||||
"--copy-paste",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
default=False,
|
||||
help="Enable/disable watching clipboard for changes (default: False)",
|
||||
help="Enable automatic copy/paste of chat between aider and web UI (default: False)",
|
||||
)
|
||||
group = parser.add_argument_group("Fixing and committing")
|
||||
group.add_argument(
|
||||
|
|
|
@ -688,7 +688,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
editor_edit_format=args.editor_edit_format,
|
||||
)
|
||||
|
||||
if args.copypaste and args.edit_format is None:
|
||||
if args.copy_paste and args.edit_format is None:
|
||||
if main_model.edit_format in ("diff", "whole"):
|
||||
main_model.edit_format = "editor-" + main_model.edit_format
|
||||
|
||||
|
@ -805,7 +805,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
suggest_shell_commands=args.suggest_shell_commands,
|
||||
chat_language=args.chat_language,
|
||||
detect_urls=args.detect_urls,
|
||||
auto_copy_context=args.copypaste,
|
||||
auto_copy_context=args.copy_paste,
|
||||
)
|
||||
except UnknownEditFormat as err:
|
||||
io.tool_error(str(err))
|
||||
|
@ -831,7 +831,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
file_watcher = FileWatcher(coder, gitignores=ignores, verbose=args.verbose)
|
||||
coder.file_watcher = file_watcher
|
||||
|
||||
if args.copypaste:
|
||||
if args.copy_paste:
|
||||
ClipboardWatcher(coder.io, verbose=args.verbose)
|
||||
|
||||
coder.show_announcements()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue