feat: Allow installing from specific git branches via --install-branch

This commit is contained in:
Trent Robbins (aider) 2025-04-27 12:46:18 -07:00
parent 38352735c3
commit 7b22f1d281

View file

@ -564,9 +564,15 @@ def get_parser(default_config_files, git_root):
default=None, default=None,
) )
group.add_argument( group.add_argument(
"--install-main-branch", "--install-branch",
action="store_true", nargs="?",
help="Install the latest version from the main branch", const=True,
metavar="GIT_URL",
help=(
"Install the latest version from a git branch. If GIT_URL is provided, installs from"
" that URL (e.g., git+https://github.com/user/aider.git@my-branch). If no URL is"
" provided, installs from the Aider-AI main branch."
),
default=False, default=False,
) )
group.add_argument( group.add_argument(