diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-29 09:29:44 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-29 09:29:44 +0100 |
commit | e441e08e6f295e5ead43fd55b718671384bcaeda (patch) | |
tree | 094f9ff8840e83f6086c86bc554e6687d918c592 /example2.py | |
parent | 5f2f4a2e9b9a600aaac727f14719282d896e6dee (diff) | |
download | cliapp-e441e08e6f295e5ead43fd55b718671384bcaeda.tar.gz |
Document subcommands in --help output.
Diffstat (limited to 'example2.py')
-rw-r--r-- | example2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example2.py b/example2.py index d2b94a6..24d7579 100644 --- a/example2.py +++ b/example2.py @@ -28,10 +28,12 @@ import logging class ExampleApp(cliapp.Application): def cmd_greet(self, args): + '''Greet the user.''' for arg in args: self.output.write('greetings, %s\n' % arg) def cmd_insult(self, args): + '''Insult the user.''' for arg in args: self.output.write('you suck, %s\n' % arg) |