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