Skip to content

Commit bc50e37

Browse files
committed
Fixed command finalization example
1 parent 96c8144 commit bc50e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/hooks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ command finalization hook::
311311
self.register_cmdfinalization_hook(self.myhookmethod)
312312

313313
def myhookmethod(self, data: cmd2.plugin.CommandFinalizationData) -> cmd2.plugin.CommandFinalizationData:
314-
return stop
314+
return data
315315

316316
Command Finalization hooks must check whether the
317317
:data:`~cmd2.plugin.CommandFinalizationData.statement` attribute of the passed

0 commit comments

Comments
 (0)