diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2013-11-24 20:23:39 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@kit.edu> | 2013-11-27 22:33:04 +0100 |
commit | fa5480e8bccec39278e9c5f81c09d1e702fd0fd7 (patch) | |
tree | 15d398b9828da5586944157857189de78f2a126f /gr-utils/python/modtool/modtool_help.py | |
parent | 77b36be049ed864beaf450413e4b960d909d6f8a (diff) |
modtool: no more exit() in modtool package
Conflicts:
gr-utils/python/modtool/modtool_newmod.py
Diffstat (limited to 'gr-utils/python/modtool/modtool_help.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_help.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-utils/python/modtool/modtool_help.py b/gr-utils/python/modtool/modtool_help.py index 76d9fd28bd..b894e272e8 100644 --- a/gr-utils/python/modtool/modtool_help.py +++ b/gr-utils/python/modtool/modtool_help.py @@ -26,8 +26,8 @@ from templates import Templates def print_class_descriptions(): - ''' Go through all ModTool* classes and print their name, - alias and description. ''' + """ Go through all ModTool* classes and print their name, + alias and description. """ desclist = [] for gvar in globals().values(): try: @@ -40,14 +40,16 @@ def print_class_descriptions(): for description in desclist: print '%-8s %-12s %s' % description + class ModToolHelp(ModTool): - ''' Show some help. ''' + """ Show some help. """ name = 'help' aliases = ('h', '?') + def __init__(self): ModTool.__init__(self) - def setup(self): + def setup(self, options, args): pass def run(self): |