Added missing errorcode
This commit is contained in:
parent
f33b70ac0e
commit
d5eb376dd3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ parser.add_option('--max', dest='max_days_old', type="int", help='maximum age (i
|
|||
|
||||
if not options.min_days_old and not options.max_days_old or not options.itp and not options.rfp or options.itp and options.rfp:
|
||||
parser.error('You have to give at least one of --min or --max and one of -r or -i options.')
|
||||
sys.exit
|
||||
sys.exit(0)
|
||||
|
||||
if not options.min_days_old: options.min_days_old = 0
|
||||
if not options.max_days_old: options.max_days_old = 9999
|
||||
|
|
Loading…
Reference in a new issue