summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--docs/freefeatures.rst9
2 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1139853f..fad8ca2e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,6 @@
## 0.9.11 (TBD, 2019)
+* Bug Fixes
+ * Fixed a bug when the ``with_argument_list`` decorator is called with the optional ``preserve_quotes`` argument
* Enhancements
* Added ``matches_sort_key`` to override the default way tab completion matches are sorted
* Potentially breaking changes
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index c70a2d93..b6c7bebd 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -222,12 +222,11 @@ of using ``pyscript`` is shown below along with the **examples/arg_printer.py**
If you want to be able to pass arguments with spaces to scripts, then we strongly recommend using one of the decorators,
such as ``with_argument_list``. ``cmd2`` will pass your **do_*** methods a list of arguments in this case.
- When using this decorator, you can then put arguments in quotes like so (NOTE: the ``do_pyscript`` method uses this decorator::
+ When using this decorator, you can then put arguments in quotes like so::
- (Cmd) pyscript examples/arg_printer.py hello '23 fnord'
- Running Python script 'arg_printer.py' which was called with 2 arguments
- arg 1: 'hello'
- arg 2: '23 fnord'
+ $ examples/arg_print.py
+ (Cmd) lprint foo "bar baz"
+ lprint was called with the following list of arguments: ['foo', 'bar baz']
IPython (optional)