aboutsummaryrefslogtreecommitdiff
path: root/b4/ty.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-10-20 12:06:44 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-10-20 12:06:44 -0400
commit750286a7aba7dc091b4407c9f31157129aade588 (patch)
tree1df87be126a86d98b13b249c40e756782057a000 /b4/ty.py
parent3a5ebbe9d91a44bd9a5107130e551b33bbf2d102 (diff)
downloadb4-750286a7aba7dc091b4407c9f31157129aade588.tar.gz
ty: fix bugs introduced when switching -s to -t
Test out and fix the bugs introduced by switching flags. Reported-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/ty.py')
-rw-r--r--b4/ty.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/b4/ty.py b/b4/ty.py
index b790007..874fa5e 100644
--- a/b4/ty.py
+++ b/b4/ty.py
@@ -509,11 +509,11 @@ def thank_selected(cmdargs):
logger.info('Nothing to do')
sys.exit(0)
- if cmdargs.send == 'all':
+ if cmdargs.thankfor == 'all':
listing = tracked
else:
listing = list()
- for num in b4.parse_int_range(cmdargs.send, upper=len(tracked)):
+ for num in b4.parse_int_range(cmdargs.thankfor, upper=len(tracked)):
try:
index = int(num) - 1
listing.append(tracked[index])
@@ -659,7 +659,7 @@ def main(cmdargs):
if cmdargs.auto:
check_stale_thanks(cmdargs.outdir)
auto_thankanator(cmdargs)
- elif cmdargs.thank:
+ elif cmdargs.thankfor:
check_stale_thanks(cmdargs.outdir)
thank_selected(cmdargs)
elif cmdargs.discard: