summaryrefslogtreecommitdiff
path: root/example2.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-29 09:05:34 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-29 09:05:34 +0100
commit291f148b3277ae1725dfc60bae413e18237c51d9 (patch)
tree142632503cbceb2415dc672d5e46a0fb3e07b4c0 /example2.py
parent635db253f605899bb83eb9682b7bbd9a8741ada8 (diff)
downloadcliapp-291f148b3277ae1725dfc60bae413e18237c51d9.tar.gz
Add a way to give a short description of the program.
This will be included in the --help output.
Diffstat (limited to 'example2.py')
-rw-r--r--example2.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/example2.py b/example2.py
index 1a8911b..f49105b 100644
--- a/example2.py
+++ b/example2.py
@@ -36,7 +36,10 @@ class ExampleApp(cliapp.Application):
self.output.write('you suck, %s\n' % arg)
-app = ExampleApp(version='0.1.2')
+app = ExampleApp(version='0.1.2', description='''\
+Greet the user.
+Or possibly insult them. User's choice.
+''')
app.settings.config_files = ['example.conf']
app.run()