diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-06-01 00:45:15 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-06-01 00:45:15 -0400 |
commit | eb41d46c1f6c6281e57e8b864fa4500d3509ed55 (patch) | |
tree | 0b515e33f78b45f7eefa9dd2dcbe5bcc14baa0ec /CHANGELOG.md | |
parent | 19a142782bc1272af870cd893fd25fc7f19c9940 (diff) | |
parent | 8d9405a1fcc2169aa039172a8e2891b839a59e6c (diff) | |
download | cmd2-git-eb41d46c1f6c6281e57e8b864fa4500d3509ed55.tar.gz |
Merge branch 'master' into hint_bug
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c6fbd466..31daa079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.0.3 (TBD, 2020) +## 1.1.0 (TBD, 2020) * Bug Fixes * Fixed issue where subcommand usage text could contain a subcommand alias instead of the actual name * Enhancements @@ -14,6 +14,15 @@ documentation for an overview. * See [table_creation.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py) for an example. + * Added the following exceptions to the public API + * `SkipPostcommandHooks` - Custom exception class for when a command has a failure bad enough to skip + post command hooks, but not bad enough to print the exception to the user. + * `Cmd2ArgparseError` - A `SkipPostcommandHooks` exception for when a command fails to parse its arguments. + Normally argparse raises a `SystemExit` exception in these cases. To avoid stopping the command + loop, catch the `SystemExit` and raise this instead. If you still need to run post command hooks + after parsing fails, just return instead of raising an exception. + * Added explicit handling of `SystemExit`. If a command raises this exception, the command loop will be + gracefully stopped. ## 1.0.2 (April 06, 2020) * Bug Fixes |