Skip to content

Commit 9b91116

Browse files
committed
Updated change log
1 parent c30fcd3 commit 9b91116

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.0.3 (TBD, 2020)
1+
## 1.1.0 (TBD, 2020)
22
* Bug Fixes
33
* Fixed issue where subcommand usage text could contain a subcommand alias instead of the actual name
44
* Enhancements
@@ -14,6 +14,15 @@
1414
documentation for an overview.
1515
* See [table_creation.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py)
1616
for an example.
17+
* Added the following exceptions to the public API
18+
* `SkipPostcommandHooks` - Custom exception class for when a command has a failure bad enough to skip
19+
post command hooks, but not bad enough to print the exception to the user.
20+
* `Cmd2ArgparseError` - A `SkipPostcommandHooks` exception for when a command fails to parse its arguments.
21+
Normally argparse raises a `SystemExit` exception in these cases. To avoid stopping the command
22+
loop, catch the `SystemExit` and raise this instead. If you still need to run post command hooks
23+
after parsing fails, just return instead of raising an exception.
24+
* Added explicit handling of `SystemExit`. If a command raises this exception, the command loop will be
25+
gracefully stopped.
1726

1827
## 1.0.2 (April 06, 2020)
1928
* Bug Fixes

0 commit comments

Comments
 (0)