diff options
author | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-05 18:03:55 +0900 |
---|---|---|
committer | JF Ding <Jian-feng.Ding@intel.com> | 2011-09-05 18:03:55 +0900 |
commit | 49aa9aa6520e601feebc24525693119ec256949e (patch) | |
tree | 8a1e39967d4bf9ce7134910f96baf3c9351dab30 /tools | |
parent | a76137f44880e8949ad40c3fb5f00c810d53565c (diff) | |
download | mic-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-x | tools/mic | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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: |