summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')