diff options
Diffstat (limited to 'bitbake/lib/bb/main.py')
-rwxr-xr-x | bitbake/lib/bb/main.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 283f29bb15..3fc3ff51e2 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -179,6 +179,9 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): | |||
179 | parser.add_option("-D", "--debug", action="count", dest="debug", default=0, | 179 | parser.add_option("-D", "--debug", action="count", dest="debug", default=0, |
180 | help="Increase the debug level. You can specify this more than once.") | 180 | help="Increase the debug level. You can specify this more than once.") |
181 | 181 | ||
182 | parser.add_option("-q", "--quiet", action="store_true", dest="quiet", default=False, | ||
183 | help="Output less log message data to the terminal.") | ||
184 | |||
182 | parser.add_option("-n", "--dry-run", action="store_true", dest="dry_run", default=False, | 185 | parser.add_option("-n", "--dry-run", action="store_true", dest="dry_run", default=False, |
183 | help="Don't execute, just go through the motions.") | 186 | help="Don't execute, just go through the motions.") |
184 | 187 | ||
@@ -279,6 +282,12 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): | |||
279 | 282 | ||
280 | options, targets = parser.parse_args(argv) | 283 | options, targets = parser.parse_args(argv) |
281 | 284 | ||
285 | if options.quiet and options.verbose: | ||
286 | parser.error("options --quiet and --verbose are mutually exclusive") | ||
287 | |||
288 | if options.quiet and options.debug: | ||
289 | parser.error("options --quiet and --debug are mutually exclusive") | ||
290 | |||
282 | # use configuration files from environment variables | 291 | # use configuration files from environment variables |
283 | if "BBPRECONF" in os.environ: | 292 | if "BBPRECONF" in os.environ: |
284 | options.prefile.append(os.environ["BBPRECONF"]) | 293 | options.prefile.append(os.environ["BBPRECONF"]) |