summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS8
-rw-r--r--cliapp/app.py2
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7219b4a..6ef89a1 100644
--- a/NEWS
+++ b/NEWS
@@ -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: