diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2013-10-23 18:43:17 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2013-10-23 18:45:00 -0400 |
commit | 28898d675df4a205fd11395e28c7c53e504de7b2 (patch) | |
tree | 91a11854b29e7b53973172d41574affa77fce5ce /cliff | |
parent | 6bbefff4aa01af99bb2da8b7d4d1ac5afe6e0828 (diff) | |
download | cliff-28898d675df4a205fd11395e28c7c53e504de7b2.tar.gz |
Pass the right args when pulling help from commands
Pass the application, not the HelpCommand, to each command
class when it is instantiated to extract the help text.
Addresses #52
Change-Id: I8de7c37f859a5783b80d6ad8d8eab0099b773e08
Diffstat (limited to 'cliff')
-rw-r--r-- | cliff/help.py | 2 |
1 files changed, 1 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 |