added -k/--keep-going option

This commit is contained in:
David Goodger 2006-03-28 01:27:28 +00:00
parent ed52c133d3
commit d9e8adefa6
1 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,9 @@ Options:
-f, --force
Force the rebuilding of output files, regardless of modification times.
-k, --keep-going
Continue building past errors if possible.
-q, --quiet
Turn off verbose messages.
@ -518,8 +521,8 @@ def main(argv=None):
try:
opts, args = getopt.getopt(
argv, 'd:fhq',
['destdir=', 'force', 'help', 'quiet'])
argv, 'hd:fkq',
['help', 'destdir=', 'force', 'keep-going', 'quiet'])
except getopt.error, msg:
usage(1, msg)
@ -530,6 +533,8 @@ def main(argv=None):
settings.dest_dir_base = arg
elif opt in ('-f', '--force'):
settings.force_rebuild = True
elif opt in ('-k', '--keep-going'):
settings.force_rebuild = True
elif opt in ('-q', '--quiet'):
settings.verbose = False