summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cliff/help.py2
-rw-r--r--docs/source/history.rst6
2 files changed, 7 insertions, 1 deletions
diff --git a/cliff/help.py b/cliff/help.py
index 67571b3..eb007f1 100644
--- a/cliff/help.py
+++ b/cliff/help.py
@@ -23,7 +23,7 @@ class HelpAction(argparse.Action):
app.stdout.write('Could not load %r\n' % ep)
continue
try:
- cmd = factory(self, None)
+ cmd = factory(app, None)
except Exception as err:
app.stdout.write('Could not instantiate %r: %s\n' % (ep, err))
continue
diff --git a/docs/source/history.rst b/docs/source/history.rst
index 240a6cc..3c78ccb 100644
--- a/docs/source/history.rst
+++ b/docs/source/history.rst
@@ -2,6 +2,12 @@
Release History
=================
+dev
+
+- Fix the arguments passed to commands when they are instantiated to
+ pull out help. See https://github.com/dreamhost/cliff/issues/52 for
+ details.
+
1.4.5
- Update the pyparsing dependency to a version that supports both