diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-05-28 12:47:56 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-05-28 12:47:56 -0400 |
commit | c30fcd3d764b3b7a6f112c49ed5393650f4f9bcb (patch) | |
tree | 97fbe7373f1edd40e006e0d68b1a464a1ec5afdd /docs/features/hooks.rst | |
parent | 6f91bea16a00f48ff6be729ed12a5920ebac3baa (diff) | |
download | cmd2-git-c30fcd3d764b3b7a6f112c49ed5393650f4f9bcb.tar.gz |
Updated docs
Diffstat (limited to 'docs/features/hooks.rst')
-rw-r--r-- | docs/features/hooks.rst | 6 |
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 -------------------------- |