summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorcatherine <catherine@dellzilla>2010-02-17 14:32:04 -0500
committercatherine <catherine@dellzilla>2010-02-17 14:32:04 -0500
commitcdc42ab6a5931be48f7899250d67ffb821f4612e (patch)
treebe17830eeb767681452d1a041ef4a2976b24c498 /cmd2.py
parent0d933b2c30e836b9556b721e31e11b8a98dcb6b8 (diff)
downloadcmd2-hg-cdc42ab6a5931be48f7899250d67ffb821f4612e.tar.gz
fix usage help name-stripping bug
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 1a0babd..4f21d2e 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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: