diff options
-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: |