File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
- ## 1.0.3 (TBD, 2020)
1
+ ## 1.1.0 (TBD, 2020)
2
2
* Bug Fixes
3
3
* Fixed issue where subcommand usage text could contain a subcommand alias instead of the actual name
4
4
* Enhancements
14
14
documentation for an overview.
15
15
* See [ table_creation.py] ( https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py )
16
16
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.
17
26
18
27
## 1.0.2 (April 06, 2020)
19
28
* Bug Fixes
You can’t perform that action at this time.
0 commit comments