From c30fcd3d764b3b7a6f112c49ed5393650f4f9bcb Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 28 May 2020 12:47:56 -0400 Subject: Updated docs --- docs/features/hooks.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/features/hooks.rst') diff --git a/docs/features/hooks.rst b/docs/features/hooks.rst index fec8e258..4c615586 100644 --- a/docs/features/hooks.rst +++ b/docs/features/hooks.rst @@ -291,6 +291,12 @@ blindly returns ``False``, a prior hook's requst to exit the application will not be honored. It's best to return the value you were passed unless you have a compelling reason to do otherwise. +To purposefully and silently skip postcommand hooks, commands can raise any of +of the following exceptions. + +- :attr:`cmd2.exceptions.SkipPostcommandHooks` +- :attr:`cmd2.exceptions.Cmd2ArgparseError` + Command Finalization Hooks -------------------------- -- cgit v1.2.1