diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-09 09:48:27 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-09 09:48:27 +0100 |
commit | 1ed344ce0df240f45c4725152b40b707b2a4d1f2 (patch) | |
tree | 3b38315b07a2dfa307f67836ead650b108214b66 | |
parent | fd043a4fc4fd0e064c0a2cf4dce07d54e10fadd3 (diff) | |
download | cliapp-1ed344ce0df240f45c4725152b40b707b2a4d1f2.tar.gz |
Fix missing get_help_text_formatter
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | cliapp/app.py | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,14 @@ NEWS for cliapp =============== +Version UNRELEASED +------------------ + +Bug fixes: + +* When getting help for a subcommand, cliapp would crash saying + `get_help_text_formatter` couldn't be found. This has been fixed. + Version 1.20140315 ------------------ diff --git a/cliapp/app.py b/cliapp/app.py index 3b63b75..c1a28d4 100644 --- a/cliapp/app.py +++ b/cliapp/app.py @@ -299,7 +299,7 @@ class Application(object): if cmd not in self.subcommands: raise cliapp.AppException('Unknown subcommand %s' % cmd) usage = self._format_usage_for(cmd) - fmt = self.get_help_text_formatter(width=width) + fmt = self.get_subcommand_help_formatter(width=width) description = fmt.format(self._format_subcommand_help(cmd)) text = '%s\n\n%s' % (usage, description) else: |