diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-06-18 18:06:32 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-06-18 18:06:32 -0400 |
commit | 1473b678ce4219f5119ae9e98af0fa5d7e21992d (patch) | |
tree | 619b4d88cee9f9605068037b55ddc05742d83e48 /cliff/help.py | |
parent | 122fa558b8b7b99541ee1bca433ad87b1b3650ff (diff) | |
download | cliff-tablib-1473b678ce4219f5119ae9e98af0fa5d7e21992d.tar.gz |
fix help and tests for API change
Diffstat (limited to 'cliff/help.py')
-rw-r--r-- | cliff/help.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cliff/help.py b/cliff/help.py index 1e4793e..58c1ead 100644 --- a/cliff/help.py +++ b/cliff/help.py @@ -36,10 +36,11 @@ class HelpCommand(Command): ) return parser - def run(self, parsed_args): + def take_action(self, parsed_args): if parsed_args.cmd: try: - cmd_factory, cmd_name, search_args = self.app.command_manager.find_command(parsed_args.cmd) + info = self.app.command_manager.find_command(parsed_args.cmd) + cmd_factory, cmd_name, search_args = info except ValueError: # Did not find an exact match cmd = parsed_args.cmd[0] |