diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-10-18 10:47:58 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-10-18 10:47:58 +0100 |
commit | 6f1f3862263535dfe1d36cb9023755ab45d34200 (patch) | |
tree | 8731ca667edaa466d03b45a86506c20d664f4fc7 /cliapp/app.py | |
parent | 9fd44074ec8b6ac4aee6c153029a06ec46cc903a (diff) | |
download | cliapp-6f1f3862263535dfe1d36cb9023755ab45d34200.tar.gz |
Make subcommand arg synopsis default to empty string
Reported-By: Sam Thursfield
Diffstat (limited to 'cliapp/app.py')
-rw-r--r-- | cliapp/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cliapp/app.py b/cliapp/app.py index 453b393..9e9e28b 100644 --- a/cliapp/app.py +++ b/cliapp/app.py @@ -251,7 +251,7 @@ class Application(object): lines = [] prefix = 'Usage:' for cmd in sorted(self.subcommands.keys()): - args = self.cmd_synopsis.get(cmd, '') + args = self.cmd_synopsis.get(cmd, '') or '' lines.append('%s %%prog [options] %s %s' % (prefix, cmd, args)) prefix = ' ' * len(prefix) return '\n'.join(lines) |