diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-29 17:25:11 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-29 17:25:11 -0400 |
commit | 94c14045d62788fb123f4316867778fa5337adae (patch) | |
tree | 69bcc341d972b2420e5c144f6484b2502576e9d2 /cliff/app.py | |
parent | 027ca037da952e9a4f7a1cd6ba5d92bc1ed1eea7 (diff) | |
download | cliff-94c14045d62788fb123f4316867778fa5337adae.tar.gz |
pass the App to the help action instead of passing just the command manager, since the app has the stout handle we want to use for printing the help
Diffstat (limited to 'cliff/app.py')
-rw-r--r-- | cliff/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cliff/app.py b/cliff/app.py index 119f78a..eec2d5c 100644 --- a/cliff/app.py +++ b/cliff/app.py @@ -90,7 +90,7 @@ class App(object): '-h', '--help', action=HelpAction, nargs=0, - default=self.command_manager, # tricky + default=self, # tricky help="show this help message and exit", ) parser.add_argument( |