mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
Merge pull request #453 from zackees/patch-1
fix https://github.com/paul-gauthier/aider/issues/452
This commit is contained in:
commit
247cab56f0
1 changed files with 7 additions and 1 deletions
|
@ -361,6 +361,11 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
||||||
help="Check for updates and return status in the exit code",
|
help="Check for updates and return status in the exit code",
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
other_group.add_argument(
|
||||||
|
"--skip-check-update",
|
||||||
|
action="store_true",
|
||||||
|
help="Skips checking for the update when the program runs",
|
||||||
|
)
|
||||||
other_group.add_argument(
|
other_group.add_argument(
|
||||||
"--apply",
|
"--apply",
|
||||||
metavar="FILE",
|
metavar="FILE",
|
||||||
|
@ -478,7 +483,8 @@ def main(argv=None, input=None, output=None, force_git_root=None):
|
||||||
|
|
||||||
io.tool_output(f"Aider v{__version__}")
|
io.tool_output(f"Aider v{__version__}")
|
||||||
|
|
||||||
check_version(io.tool_error)
|
if not args.skip_check_update:
|
||||||
|
check_version(io.tool_error)
|
||||||
|
|
||||||
if args.check_update:
|
if args.check_update:
|
||||||
update_available = check_version(lambda msg: None)
|
update_available = check_version(lambda msg: None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue