From bc50e370c6113ada43acbfaf94d211f3917a7870 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 7 Jul 2020 01:16:42 -0400 Subject: Fixed command finalization example --- docs/features/hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/features') 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 -- cgit v1.2.1