diff options
author | catherine <catherine@dellzilla> | 2010-02-17 14:32:04 -0500 |
---|---|---|
committer | catherine <catherine@dellzilla> | 2010-02-17 14:32:04 -0500 |
commit | cdc42ab6a5931be48f7899250d67ffb821f4612e (patch) | |
tree | be17830eeb767681452d1a041ef4a2976b24c498 /cmd2.py | |
parent | 0d933b2c30e836b9556b721e31e11b8a98dcb6b8 (diff) | |
download | cmd2-hg-cdc42ab6a5931be48f7899250d67ffb821f4612e.tar.gz |
fix usage help name-stripping bug
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ def options(option_list): optionParser = OptionParser() for opt in option_list: optionParser.add_option(opt) - optionParser.set_usage("%s [options] arg" % func.__name__.strip('do_')) + optionParser.set_usage("%s [options] arg" % func.__name__[3:]) optionParser._func = func def new_func(instance, arg): try: |