summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJF Ding <Jian-feng.Ding@intel.com>2011-09-05 18:03:55 +0900
committerJF Ding <Jian-feng.Ding@intel.com>2011-09-05 18:03:55 +0900
commit49aa9aa6520e601feebc24525693119ec256949e (patch)
tree8a1e39967d4bf9ce7134910f96baf3c9351dab30 /tools
parenta76137f44880e8949ad40c3fb5f00c810d53565c (diff)
downloadmic-49aa9aa6520e601feebc24525693119ec256949e.tar.gz
mic-49aa9aa6520e601feebc24525693119ec256949e.tar.bz2
mic-49aa9aa6520e601feebc24525693119ec256949e.zip
move msger.run to utils.runner module and more apis
in new separate module mic/utils/runner.py, three new apis provided: runner.show (similar with msger.run) runner.quiet runner.outs and a more generic runner.runtool
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mic b/tools/mic
index 0b43d8a..cb091e7 100755
--- a/tools/mic
+++ b/tools/mic
@@ -56,6 +56,16 @@ class Mic(cmdln.Cmdln):
msger.set_loglevel('debug')
+ def help_create(self):
+ cr = creator.Creator()
+ cr.optparser = cr.get_optparser()
+ doc = cr.__doc__
+ doc = cr._help_reindent(doc)
+ doc = cr._help_preprocess(doc, None)
+ doc = doc.replace(cr.name, "${cmd_name}", 1)
+ doc = doc.rstrip() + '\n'
+ return doc
+
@cmdln.alias("cr")
def do_create(self, argv):
try: