summaryrefslogtreecommitdiff
path: root/example2.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-28 15:53:21 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-28 15:53:21 +0100
commit185e8b9687fc31f2b97df88ed9fb887565cb0573 (patch)
tree302f5169ee2ddf0a8c12a55ed3b98208b49aa892 /example2.py
parent3e3af8f6ce7288d4f18a93376fe82c7494c2a4fd (diff)
downloadcliapp-185e8b9687fc31f2b97df88ed9fb887565cb0573.tar.gz
Add a longer description to subcommand, for testing --help output.
Diffstat (limited to 'example2.py')
-rw-r--r--example2.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/example2.py b/example2.py
index a65a351..d354fed 100644
--- a/example2.py
+++ b/example2.py
@@ -28,7 +28,12 @@ import logging
class ExampleApp(cliapp.Application):
def cmd_greet(self, args):
- '''Greet the user.'''
+ '''Greet the user.
+
+ The user is treated to a a courteus,
+ but terse form of greeting.
+
+ '''
for arg in args:
self.output.write('greetings, %s\n' % arg)