From 1ec57822002e46bc8871fb4694db1cf1e208eb75 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 8 Jul 2023 07:08:26 -0700 Subject: [PATCH] aider: Added `--apply` argument to the 'Other Settings' group in the help message. # Context: USER: you forgot --apply ? ASSISTANT: You're right, I apologize for missing that. The `--apply` argument should be grouped under 'Other Settings'. Here's the updated code: ```python aider/main.py <<<<<<< ORIGINAL other_group = parser.add_argument_group('Other Settings') other_group.add_argument( "--dry-run", action="store_true", help="Perform a dry run without applying changes (default: False)", default=False, ) other_group.add_argument( "--show-diffs", action="store_true", help="Show diffs when committing changes (default: False)", default=False, ) other_group.add_argument( "--map-tokens", type=int, default=1024, help="Max number of tokens to use for repo map, use 0 to disable (default: 1024)", ) other_group.add_argument( "--yes", action="store_true", help="Always say yes to every confirmation", default=None, ) other_group.add_argument( "-v", "--verbose", action="store_true", help="Enable verbose output", default=False, ) other_group.add_argument( "--message", "--msg", "-m", metavar="COMMAND", help="Specify a single message to send GPT, process reply then exit (disables chat mode)", ) ======= other_group = parser.add_argument_group('Other Settings') other_group.add_argument( "--apply", metavar="FILE", help="Apply the changes from the given file instead of running the chat (debug)", ) other_group.add_argument( "--dry-run", action="store_true", help="Perform a dry run without applying changes (default: False)", default=False, ) other_group.add_argument( "--show-diffs", action="store_true", help="Show diffs when committing changes (default: False)", default=False, ) other_group.add_argument( "--map-tokens", type=int, default=1024, help="Max number of tokens to use for repo map, use 0 to disable (default: 1024)", ) other_group.add_argument( "--yes", action="store_true", help="Always say yes to every confirmation", default=None, ) other_group.add_argument( "-v", "--verbose", action="store_true", help="Enable verbose output", default=False, ) other_group.add_argument( "--message", "--msg", "-m", metavar="COMMAND", help="Specify a single message to send GPT, process reply then exit (disables chat mode)", ) >>>>>>> UPDATED ``` This will add the `--apply` argument to the 'Other Settings' group in the help message. --- aider/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/main.py b/aider/main.py index 680a16dcf..8351e4e2a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -206,6 +206,11 @@ def main(args=None, input=None, output=None): ) other_group = parser.add_argument_group('Other Settings') + other_group.add_argument( + "--apply", + metavar="FILE", + help="Apply the changes from the given file instead of running the chat (debug)", + ) other_group.add_argument( "--dry-run", action="store_true",