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 | 992a0999c09946c2c55f9f307f318a7434658804 (patch) | |
tree | e730abc6a2df57e1167e809f41d38f63f7023232 /bin/review-update-needed | |
parent | 4624958b09feb719cda9be7041c8c693d681cd73 (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") |