summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2010-11-12 20:03:21 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2010-11-12 20:03:21 -0500
commit2722a96a3bb2ac8282c7fe7d91fe7edd7c3e36e3 (patch)
tree929eb45b54121e7f648ebdc9eb716f81f59d1fa6 /example
parent3082e8ad904a5384556fc5a4a9eda81c0004be32 (diff)
downloadcmd2-git-2722a96a3bb2ac8282c7fe7d91fe7edd7c3e36e3.tar.gz
added arg_desc to @options, thanks Renzo Crispiatico
Diffstat (limited to 'example')
-rwxr-xr-xexample/example.py2
-rw-r--r--example/exampleSession.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/example.py b/example/example.py
index 662b6ec6..32f20f97 100755
--- a/example/example.py
+++ b/example/example.py
@@ -12,7 +12,7 @@ class CmdLineApp(Cmd):
@options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
make_option('-r', '--repeat', type="int", help="output [n] times")
- ])
+ ], arg_desc = '(text to say)')
def do_speak(self, arg, opts=None):
"""Repeats what you tell me to."""
arg = ''.join(arg)
diff --git a/example/exampleSession.txt b/example/exampleSession.txt
index c751fd33..ee084552 100644
--- a/example/exampleSession.txt
+++ b/example/exampleSession.txt
@@ -12,7 +12,7 @@ EOF eof exit help q quit
(Cmd) help say
Repeats what you tell me to.
-Usage: speak [options] arg
+Usage: speak [options] (text to say)
Options:
-h, --help show this help message and exit