diff options
author | Antoine Beaupré <anarcat@debian.org> | 2018-11-09 15:20:00 -0500 |
---|---|---|
committer | Antoine Beaupré <anarcat@debian.org> | 2018-11-09 15:20:00 -0500 |
commit | 130117df58a2275cbffe279ea59b56273880ae1d (patch) | |
tree | 4e96dd2d94f7947a08fb0f3318b17dd2823c3856 /bin/review-update-needed | |
parent | d28ac8f136426586f8b1b7362050923f76c82259 (diff) |
add default value for unclaim parameter
Diffstat (limited to 'bin/review-update-needed')
-rwxr-xr-x | bin/review-update-needed | 6 |
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") |