diff options
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) |