summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-09 09:48:27 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-09 09:48:27 +0100
commit1ed344ce0df240f45c4725152b40b707b2a4d1f2 (patch)
tree3b38315b07a2dfa307f67836ead650b108214b66
parentfd043a4fc4fd0e064c0a2cf4dce07d54e10fadd3 (diff)
downloadcliapp-1ed344ce0df240f45c4725152b40b707b2a4d1f2.tar.gz
Fix missing get_help_text_formatter
-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: