From d9e8adefa603be878f2cd2806bc27fcde1f77d7e Mon Sep 17 00:00:00 2001 From: David Goodger Date: Tue, 28 Mar 2006 01:27:28 +0000 Subject: [PATCH] added -k/--keep-going option --- pep2pyramid.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pep2pyramid.py b/pep2pyramid.py index ac7f96063..2f70f49dc 100755 --- a/pep2pyramid.py +++ b/pep2pyramid.py @@ -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