diff options
author | Gui Chen <gui.chen@intel.com> | 2013-12-04 21:47:58 -0500 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-12-04 22:20:14 -0500 |
commit | b97c30a6e565f0977417168d502e04cec535a226 (patch) | |
tree | 157a34baa0d3bc173cbb885de3b44b57cdc9fb98 /tools | |
parent | cac3ad8b01f660174bc6ea20e38ed1e7a9d027ce (diff) | |
download | mic-b97c30a6e565f0977417168d502e04cec535a226.tar.gz mic-b97c30a6e565f0977417168d502e04cec535a226.tar.bz2 mic-b97c30a6e565f0977417168d502e04cec535a226.zip |
add options --interactive/--non-interactive
this option pair can enable/disable interactive output
Fixes: #1243
Change-Id: I57f63aed8406133f9e67c7261fe01975d34195c0
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mic | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -60,9 +60,20 @@ class MicCmd(cmdln.Cmdln): optparser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='verbose information') + optparser.add_option('-i', '--interactive', action='store_true', + dest='interactive', default='True', + help='interactive output') + optparser.add_option('--non-interactive', action='store_false', + dest='interactive', default='True', + help='non-interactive output') return optparser def postoptparse(self): + if self.options.interactive: + msger.enable_interactive() + else: + msger.disable_interactive() + if self.options.verbose: msger.set_loglevel('VERBOSE') |