diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-22 18:44:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-22 18:44:29 +0000 |
commit | 8b77ece17ba32eb7ac1914418c86b5446a575673 (patch) | |
tree | 079ba2eb17003e1293713cef0826db42dc98346f /cliff | |
parent | 9491749b09caf4f600447e3ebecdb1943cc77bf7 (diff) | |
parent | 097e0805fa8a1b4089bb0b3a5958a2fbbc62fe05 (diff) | |
download | cliff-8b77ece17ba32eb7ac1914418c86b5446a575673.tar.gz |
Merge "Docs update for more-hooks"2.9.0
Diffstat (limited to 'cliff')
-rw-r--r-- | cliff/hooks.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cliff/hooks.py b/cliff/hooks.py index eee99a1..5dc9b29 100644 --- a/cliff/hooks.py +++ b/cliff/hooks.py @@ -46,10 +46,9 @@ class CommandHook(object): def before(self, parsed_args): """Called before the command's take_action() method. - Any return value is ignored. - :param parsed_args: The arguments to the command. :paramtype parsed_args: argparse.Namespace + :returns: argparse.Namespace """ return parsed_args @@ -57,11 +56,10 @@ class CommandHook(object): def after(self, parsed_args, return_code): """Called after the command's take_action() method. - Any return value is ignored. - :param parsed_args: The arguments to the command. :paramtype parsed_args: argparse.Namespace :param return_code: The value returned from take_action(). :paramtype return_code: int + :returns: int """ return return_code |