diff options
author | lloyd <[email protected]> | 2013-03-04 21:51:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-04 21:51:57 +0000 |
commit | 8027827632dbbd491303e2e56a8648f0991daeb0 (patch) | |
tree | a8e678b22d5518382b49684d8ba38dbc49d8af7f /src/build-data | |
parent | a3e9fcd46db6347b862ea7baad70a7cde26aa109 (diff) |
Add --quiet to dist.py
Diffstat (limited to 'src/build-data')
-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, |