diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 12:55:49 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 12:55:49 -0500 |
commit | b51d31bbec6960da1137762ac6217675cf368a40 (patch) | |
tree | 9bb8f99e193ffdeb0a0d29fe76af12b5d38b42b7 | |
parent | 1f18c942fc3babf3c2183fdc2331d405d6810dc8 (diff) | |
download | cmd2-git-b51d31bbec6960da1137762ac6217675cf368a40.tar.gz |
Just updated the CHANGELOG a little to reflect ongoing changes
-rw-r--r-- | CHANGELOG.md | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 76142feb..f1d8bd5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,19 @@ * Bug Fixes * Fixed unit tests on Python 3.7 due to changes in how re.escape() behaves in Python 3.7 * Enhancements - * Added new **with_argument_parser** decorator for argparse-based argument parsing of command arguments - * This replaces the old **options** decorator for optparse-based argument parsing - * The old decorator is still present for now, but should be considered *deprecated* and will eventually be removed - * See the **Argument Processing** section of the documentation for more information - * Alternatively, see the **argparse_example.py** example + * Three new decorators for **do_*** commands to make argument parsing easier + * **with_argument_list** decorator to change argument type from str to List[str] + * **do_*** commands get a single argument which is a list of strings, as pre-parsed by shlex.split() + * **with_argument_parser** decorator for strict argparse-based argument parsing of command arguments + * **do_*** commands get a single argument which is the output of argparse.parse_args() + * **with_argparser_and_unknown_args** decorator for argparse-based argument parsing, but allowing unknown args + * **do_*** commands get two arguments, the output of argparse.parse_known_args() + * See the **Argument Processing** section of the documentation for more information on these decorators + * Alternatively, see the **argparse_example.py** and **arg_print.py** examples +* Deprecations + * The old **options** decorator for optparse-based argument parsing is now *deprecated* + * The old decorator is still present for now, but will eventually be removed in a future release + * ``cmd2`` no longer includes **optparse.make_option** so if your app needs it you need to import it directly from optparse ## 0.7.9 (January 4, 2018) |