summaryrefslogtreecommitdiff
path: root/example2.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-09-13 11:19:47 +0100
committerLars Wirzenius <liw@liw.fi>2011-09-13 11:19:47 +0100
commit3e3e28a36aae63d1107615b565626cb63c27d95e (patch)
tree45951296dc0c33c24b1a45f1b959c80bfffc4b4d /example2.py
parente0b050014aa21482a0c9d715f70fdd465c675efb (diff)
downloadcliapp-3e3e28a36aae63d1107615b565626cb63c27d95e.tar.gz
Add cmd_synopsis to example2.
Diffstat (limited to 'example2.py')
-rw-r--r--example2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example2.py b/example2.py
index d354fed..8550fed 100644
--- a/example2.py
+++ b/example2.py
@@ -27,6 +27,11 @@ import logging
class ExampleApp(cliapp.Application):
+ cmd_synopsis = {
+ 'greet': '[USER]...',
+ 'insult': '[USER]...',
+ }
+
def cmd_greet(self, args):
'''Greet the user.