Added missing errorcode

This commit is contained in:
Stefan Ritter 2009-12-10 15:02:14 +01:00
parent f33b70ac0e
commit d5eb376dd3

View file

@ -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