diff options
author | Dean Troyer <dtroyer@gmail.com> | 2017-09-16 13:05:19 -0500 |
---|---|---|
committer | Dean Troyer <dtroyer@gmail.com> | 2017-09-16 13:05:19 -0500 |
commit | 097e0805fa8a1b4089bb0b3a5958a2fbbc62fe05 (patch) | |
tree | 65d0dd1eeab6372b793137b9fb4a570958cb8b9a | |
parent | 42b169123de219bfe873e7b525a50d78028d4109 (diff) | |
download | cliff-097e0805fa8a1b4089bb0b3a5958a2fbbc62fe05.tar.gz |
Docs update for more-hooks
Change-Id: I769d5e0d5e1d3e9b1ae697b84a80d0a3ca1faa36
-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 |