feat: Add --install-main-branch switch

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 05:36:13 -07:00
parent de19c0aff0
commit 475a1ed6d6
3 changed files with 13 additions and 2 deletions

View file

@ -430,6 +430,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
update_available = check_version(io, just_check=True, verbose=args.verbose)
return 0 if not update_available else 1
if args.install_main_branch:
from aider.versioncheck import install_from_main_branch
success = install_from_main_branch(io)
return 0 if success else 1
if args.check_update:
check_version(io, verbose=args.verbose)