From a2fa4f2929522f2f7774fbff69d54ef3fbde66f4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 27 May 2023 05:10:23 -0700 Subject: [PATCH] aider: Added `--dirty-commits` argument to the argument parser in `aider/main.py`. # Context: USER: add --dirty-commits too ASSISTANT: To add the `--dirty-commits` argument, we need to modify the `aider/main.py` file. Here are the changes: ```python aider/main.py <<<<<<< ORIGINAL parser.add_argument( "--no-dirty-commits", action="store_false", dest="dirty_commits", help="Disable dirty commit of changes", ) ======= parser.add_argument( "--no-dirty-commits", action="store_false", dest="dirty_commits", help="Disable dirty commit of changes", ) parser.add_argument( "--dirty-commits", action="store_true", dest="dirty_commits", help="Enable dirty commit of changes", ) >>>>>>> UPDATED ``` These changes add the `--dirty-commits` argument to the argument parser in `aider/main.py`. --- aider/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aider/main.py b/aider/main.py index d2110560a..61d19a7f7 100644 --- a/aider/main.py +++ b/aider/main.py @@ -128,6 +128,12 @@ def main(args=None, input=None, output=None): dest="dirty_commits", help="Disable dirty commit of changes", ) + parser.add_argument( + "--dirty-commits", + action="store_true", + dest="dirty_commits", + help="Enable dirty commit of changes", + ) parser.add_argument( "--dry-run", action="store_true",