diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-12-13 20:07:01 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-14 09:54:48 +0000 |
commit | 6cf2582e17c28ca04f5cfb59858c4a9778c700d4 (patch) | |
tree | 8b2067f848a7bbc9d1681e6bc4f3449e623b3ac1 /lib/bb/main.py | |
parent | febd5534b07edfdef15cedb0578730c582c7373f (diff) | |
download | bitbake-contrib-6cf2582e17c28ca04f5cfb59858c4a9778c700d4.tar.gz |
knotty: make quiet option a level option
Allow you to specify -q / --quiet more than once to reduce the messages
even further. It will now operate as follows:
Level Option Result
----- ------ ----------------------------------------
0 Print usual output
1 -q Only show progress and warnings or above
2 -qq Only show warnings or above
3+ -qqq Only show errors
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/main.py')
-rwxr-xr-x | lib/bb/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py index f2f59f670..a544c0aec 100755 --- a/lib/bb/main.py +++ b/lib/bb/main.py @@ -179,8 +179,8 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): parser.add_option("-D", "--debug", action="count", dest="debug", default=0, help="Increase the debug level. You can specify this more than once.") - parser.add_option("-q", "--quiet", action="store_true", dest="quiet", default=False, - help="Output less log message data to the terminal.") + parser.add_option("-q", "--quiet", action="count", dest="quiet", default=0, + help="Output less log message data to the terminal. You can specify this more than once.") parser.add_option("-n", "--dry-run", action="store_true", dest="dry_run", default=False, help="Don't execute, just go through the motions.") |