diff options
Diffstat (limited to 'src/build-data/scripts/dist.py')
-rwxr-xr-x | src/build-data/scripts/dist.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build-data/scripts/dist.py b/src/build-data/scripts/dist.py index 2fa1baefc..0e28a1c6b 100755 --- a/src/build-data/scripts/dist.py +++ b/src/build-data/scripts/dist.py @@ -106,9 +106,13 @@ def parse_args(args): "usage: %prog [options] <version #>\n" + " %prog [options] snapshot <branch>" ) + parser.add_option('--verbose', action='store_true', default=False, help='Extra debug output') + parser.add_option('--quiet', action='store_true', + default=False, help='Only show errors') + parser.add_option('--output-dir', metavar='DIR', default='.', help='Where to place output (default %default)') @@ -142,6 +146,8 @@ def main(args = None): def log_level(): if options.verbose: return logging.DEBUG + if options.quiet: + return logging.ERROR return logging.INFO logging.basicConfig(stream = sys.stdout, |