From 56b965b2e30d483145a737062151616a3628960c Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Thu, 7 May 2020 11:52:20 -0400 Subject: Switch ty -s and -d to allow friendly ranges Instead of insisting that people put in specific numbers, allow them to specify ranges, such as: b4 ty -s 1-3,5,7- Signed-off-by: Konstantin Ryabitsev --- b4/command.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'b4/command.py') diff --git a/b4/command.py b/b4/command.py index 54b79f5..72a2fe1 100644 --- a/b4/command.py +++ b/b4/command.py @@ -148,10 +148,10 @@ def cmd(): help='Write thanks files into this dir (default=.)') sp_ty.add_argument('-l', '--list', action='store_true', default=False, help='List pull requests and patch series you have retrieved') - sp_ty.add_argument('-s', '--send', nargs='+', - help='Generate thankyous for specified messages (use -l to get the list or "all")') - sp_ty.add_argument('-d', '--discard', nargs='+', - help='Discard specified messages (use -l to get the list, or use "all")') + sp_ty.add_argument('-s', '--send', default=None, + help='Generate thankyous for specific entries from -l (e.g.: 1,3-5,7-; or "all")') + sp_ty.add_argument('-d', '--discard', default=None, + help='Discard specific messages from -l (e.g.: 1,3-5,7-; or "all")') sp_ty.add_argument('-a', '--auto', action='store_true', default=False, help='Use the Auto-Thankanator to figure out what got applied/merged') sp_ty.add_argument('-b', '--branch', default=None, -- cgit v1.2.3