summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-07-07 01:16:42 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-07-07 01:16:42 -0400
commitbc50e370c6113ada43acbfaf94d211f3917a7870 (patch)
treedb4f72c17e66e0f0f8b47ea2517f84ed23511f0e /docs
parent96c8144d1fa73b85b93ffab7bf8f86f8f0c8bd69 (diff)
downloadcmd2-git-bc50e370c6113ada43acbfaf94d211f3917a7870.tar.gz
Fixed command finalization example
Diffstat (limited to 'docs')
-rw-r--r--docs/features/hooks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/hooks.rst b/docs/features/hooks.rst
index 4c615586..d05e2638 100644
--- a/docs/features/hooks.rst
+++ b/docs/features/hooks.rst
@@ -311,7 +311,7 @@ command finalization hook::
self.register_cmdfinalization_hook(self.myhookmethod)
def myhookmethod(self, data: cmd2.plugin.CommandFinalizationData) -> cmd2.plugin.CommandFinalizationData:
- return stop
+ return data
Command Finalization hooks must check whether the
:data:`~cmd2.plugin.CommandFinalizationData.statement` attribute of the passed