summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@debian.org>2018-11-09 15:20:00 -0500
committerAntoine Beaupré <anarcat@debian.org>2018-11-09 15:20:00 -0500
commit7fa575e801a3fa2d9b0b960592c07c6d9d44a86f (patch)
treed0082d0ed5f9877ddcf5be09c59e31c947f2f4e5 /bin
parent1ac9ca9173bf9568f90128f870df7d0ffcec7d7c (diff)
add default value for unclaim parameter
Diffstat (limited to 'bin')
-rwxr-xr-xbin/review-update-needed6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/review-update-needed b/bin/review-update-needed
index 0798ef9095..7b55d64b9b 100755
--- a/bin/review-update-needed
+++ b/bin/review-update-needed
@@ -39,10 +39,12 @@ parser.add_argument('--skip-unclaimed', action='store_true',
help='Skip unclaimed packages in the review')
if humanfriendly:
parser.add_argument('--unclaim', default=None, metavar='N',
- help='Automatically unclaim entries older than specified delta (default: no automatic unclaim)')
+ nargs='?', const='1w',
+ help='Automatically unclaim entries older than specified delta (default: %(default)s)')
else:
parser.add_argument('--unclaim', default=None, metavar='N', type=int,
- help='Automatically unclaim entries older than N seconds (default: no automatic unclaim)')
+ nargs='?', const=604800,
+ help='Automatically unclaim entries older than N seconds (default: %(default)s)')
args = parser.parse_args()
if args.verbose and args.quiet:
args.error("--verbose and --quiet contradiction")

© 2014-2024 Faster IT GmbH | imprint | privacy policy