diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:52:20 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:52:20 -0400 |
commit | 56b965b2e30d483145a737062151616a3628960c (patch) | |
tree | 7be920499024f71bb2bed31a0afe19ae43872077 /b4/command.py | |
parent | afd622604f9ec4360d50b6e32b11fc66e44d62a1 (diff) | |
download | b4-56b965b2e30d483145a737062151616a3628960c.tar.gz |
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 <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r-- | b4/command.py | 8 |
1 files changed, 4 insertions, 4 deletions
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, |