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 | 7fa575e801a3fa2d9b0b960592c07c6d9d44a86f (patch) | |
tree | d0082d0ed5f9877ddcf5be09c59e31c947f2f4e5 /bin/review-update-needed | |
parent | 1ac9ca9173bf9568f90128f870df7d0ffcec7d7c (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") |