@@ -184,7 +184,7 @@ def setup_parser() -> argparse.ArgumentParser:
help='Save patches in a quilt-ready folder')
sp_am.add_argument('-g', '--guess-base', dest='guessbase', action='store_true', default=False,
help='Try to guess the base of the series (if not specified)')
- sp_am.add_argument('-b', '--guess-branch', dest='guessbranch', nargs='+', action='extend', type=str, default=None,
+ sp_am.add_argument('-b', '--guess-branch', dest='guessbranch', nargs=1, action='extend', type=str, default=None,
help='When guessing base, restrict to this branch (use with -g)')
sp_am.add_argument('--guess-lookback', dest='guessdays', type=int, default=21,
help='When guessing base, go back this many days from the patch date (default: 2 weeks)')
More than 1 branch argument doesn't work correctly, so restrict it to 1 arg. The help text already implies it is a single branch. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> --- src/b4/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)