summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-12-04 21:47:58 -0500
committerGui Chen <gui.chen@intel.com>2013-12-04 22:20:14 -0500
commitb97c30a6e565f0977417168d502e04cec535a226 (patch)
tree157a34baa0d3bc173cbb885de3b44b57cdc9fb98
parentcac3ad8b01f660174bc6ea20e38ed1e7a9d027ce (diff)
downloadmic-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>
-rwxr-xr-xtools/mic11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/mic b/tools/mic
index 964e0c1..6a0afa1 100755
--- a/tools/mic
+++ b/tools/mic
@@ -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')