diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-29 09:05:34 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-29 09:05:34 +0100 |
commit | 291f148b3277ae1725dfc60bae413e18237c51d9 (patch) | |
tree | 142632503cbceb2415dc672d5e46a0fb3e07b4c0 /example2.py | |
parent | 635db253f605899bb83eb9682b7bbd9a8741ada8 (diff) | |
download | cliapp-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.py | 5 |
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() |