diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-13 23:33:58 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-13 23:33:58 -0400 |
commit | 88b45e12b0c2c9e7f8e386504f2d6808f396560b (patch) | |
tree | 66209a092dc11528f73a9cb1a991c620be09a815 /docs/settingchanges.rst | |
parent | 23fad46d5187600d52b95125bb1629e491cb9e6f (diff) | |
download | cmd2-git-88b45e12b0c2c9e7f8e386504f2d6808f396560b.tar.gz |
First stage of attribute refactoring
The following are now arguments to cmd2.Cmd.__init__() instead of class attributes:
* allow_redirection
* multiline_commands
* terminators
* shortcuts
Added a couple read-only properties for convenience of cmd2.Cmd accessing immutable members from self.statement_parser
Diffstat (limited to 'docs/settingchanges.rst')
-rw-r--r-- | docs/settingchanges.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/settingchanges.rst b/docs/settingchanges.rst index e1c437e4..c9345bc6 100644 --- a/docs/settingchanges.rst +++ b/docs/settingchanges.rst @@ -44,7 +44,7 @@ To define more shortcuts, update the dict ``App.shortcuts`` with the Shortcuts need to be created by updating the ``shortcuts`` dictionary attribute prior to calling the ``cmd2.Cmd`` super class ``__init__()`` method. Moreover, that super class init method needs to be called after updating the ``shortcuts`` attribute This warning applies in general to many other attributes which are not - settable at runtime such as ``multiline_commands``, etc. + settable at runtime. Aliases |