summaryrefslogtreecommitdiff
path: root/docs/features/hooks.rst
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-06-01 00:45:15 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-06-01 00:45:15 -0400
commiteb41d46c1f6c6281e57e8b864fa4500d3509ed55 (patch)
tree0b515e33f78b45f7eefa9dd2dcbe5bcc14baa0ec /docs/features/hooks.rst
parent19a142782bc1272af870cd893fd25fc7f19c9940 (diff)
parent8d9405a1fcc2169aa039172a8e2891b839a59e6c (diff)
downloadcmd2-git-eb41d46c1f6c6281e57e8b864fa4500d3509ed55.tar.gz
Merge branch 'master' into hint_bug
Diffstat (limited to 'docs/features/hooks.rst')
-rw-r--r--docs/features/hooks.rst6
1 files changed, 6 insertions, 0 deletions
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
--------------------------