diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-23 21:11:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-23 21:11:01 -0400 |
commit | bef07746e33da9def33d814913891384a545a95c (patch) | |
tree | 86b162f79663f70cbe88e64deb4cecb93106ba68 /docs | |
parent | c12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (diff) | |
parent | eb1936e568a2ca4817ab0cd640220a5bc355e226 (diff) | |
download | cmd2-git-bef07746e33da9def33d814913891384a545a95c.tar.gz |
Merge pull request #703 from python-cmd2/public_api
Minimize public API of cmd2.Cmd class
Diffstat (limited to 'docs')
-rw-r--r-- | docs/argument_processing.rst | 2 | ||||
-rw-r--r-- | docs/settingchanges.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/argument_processing.rst b/docs/argument_processing.rst index 4bd917cf..599e4cf0 100644 --- a/docs/argument_processing.rst +++ b/docs/argument_processing.rst @@ -267,7 +267,7 @@ Here's what it looks like:: if unknown: self.perror("dir does not take any positional arguments:", traceback_war=False) self.do_help('dir') - self._last_result = CommandResult('', 'Bad arguments') + self.last_result = CommandResult('', 'Bad arguments') return # Get the contents as a list diff --git a/docs/settingchanges.rst b/docs/settingchanges.rst index aa6d9084..0e4feac1 100644 --- a/docs/settingchanges.rst +++ b/docs/settingchanges.rst @@ -33,7 +33,7 @@ To define more shortcuts, update the dict ``App.shortcuts`` with the class App(Cmd2): def __init__(self): - shortcuts = dict(self.DEFAULT_SHORTCUTS) + shortcuts = dict(cmd2.DEFAULT_SHORTCUTS) shortcuts.update({'*': 'sneeze', '~': 'squirm'}) cmd2.Cmd.__init__(self, shortcuts=shortcuts) |