mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
feat: add --watch-files switch to control FileWatcher
This commit is contained in:
parent
935832028a
commit
93c9bdcec7
1 changed files with 6 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue