diff example/example.py @ 413:f16f444a4d10

added arg_desc to @options, thanks Renzo Crispiatico
author Catherine Devlin <catherine.devlin@gmail.com>
date Fri, 12 Nov 2010 20:03:21 -0500
parents 99dd71cb477a
children bfbe4241bd6b
line wrap: on
line diff
--- a/example/example.py	Tue Nov 09 05:23:56 2010 -0500
+++ b/example/example.py	Fri Nov 12 20:03:21 2010 -0500
@@ -12,7 +12,7 @@
     @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)