From 93c9bdcec71d78fa77fa05cf4bf3648a2d04ff96 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sun, 1 Dec 2024 09:33:58 -0800 Subject: [PATCH] feat: add --watch-files switch to control FileWatcher --- aider/args.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aider/args.py b/aider/args.py index d6564ad99..0f282cfda 100644 --- a/aider/args.py +++ b/aider/args.py @@ -15,8 +15,6 @@ from aider.args_formatter import ( from .dump import dump # noqa: F401 -# add --watch-files switch to control FileWatcher ai! - def default_env_file(git_root): return os.path.join(git_root, ".env") if git_root else ".env" @@ -530,6 +528,12 @@ def get_parser(default_config_files, git_root): help="Skip the sanity check for the git repository (default: False)", default=False, ) + group.add_argument( + "--watch-files", + action=argparse.BooleanOptionalAction, + default=True, + help="Enable/disable watching files for external changes (default: True)", + ) group = parser.add_argument_group("Fixing and committing") group.add_argument( "--lint",