From 7b22f1d281add1561c779fb6bcedea3a4b39a3be Mon Sep 17 00:00:00 2001 From: "Trent Robbins (aider)" Date: Sun, 27 Apr 2025 12:46:18 -0700 Subject: [PATCH] feat: Allow installing from specific git branches via --install-branch --- aider/args.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/aider/args.py b/aider/args.py index 6df19778b..6182a6110 100644 --- a/aider/args.py +++ b/aider/args.py @@ -564,9 +564,15 @@ def get_parser(default_config_files, git_root): default=None, ) group.add_argument( - "--install-main-branch", - action="store_true", - help="Install the latest version from the main branch", + "--install-branch", + nargs="?", + 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, ) group.add_argument(