diff --git a/aider/main.py b/aider/main.py index 3aa2010c1..fb209d6d4 100644 --- a/aider/main.py +++ b/aider/main.py @@ -48,6 +48,12 @@ def main(): metavar="FILE", help="Apply the changes from the given file instead of running the chat (debug)", ) + parser.add_argument( + "--no-auto-commits", + action="store_true", + help=f"Do not automatically commit changes (default: False, ${env_prefix}NO_AUTO_COMMITS)", + default=bool(int(os.environ.get(f"{env_prefix}NO_AUTO_COMMITS", 0))), + ) parser.add_argument( "--show-diffs", action="store_true",