Skip to content

Commit

Permalink
Updated change log and docs for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kmvanbrunt committed Aug 25, 2020
1 parent ae7e67c commit 97c348c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.3.5 (TBD)
## 1.3.5 (August 25, 2020)
* Bug Fixes
* Fixed `RecursionError` when printing an `argparse.Namespace` caused by custom attribute cmd2 was adding
* Enhancements
Expand Down
15 changes: 15 additions & 0 deletions docs/features/argument_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,3 +383,18 @@ fashion.

.. _decorator_primer: https://realpython.com/primer-on-python-decorators
.. _help_categories: https://github.com/python-cmd2/cmd2/blob/master/examples/help_categories.py


Reserved Argument Names
-----------------------
``cmd2`` argparse decorators add the following attributes to argparse
Namespaces. To avoid naming collisions, do not use any of the names for your
argparse arguments.

- ``__statement__`` - ``cmd2.Statement`` object that was created when parsing
the command line.
- ``get_statement()`` - convenience function which returns the ``Statement``
- ``__subcmd_handler__`` - points to subcommand handler function. This is added
when using the ``@cmd2.as_subcommand_to`` decorator.
- ``get_handler()`` - convenience function which returns the subcommand handler
or ``None`` if one was not set

0 comments on commit 97c348c

Please sign in to comment.