summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index 65a24b8b..1cc045f2 100755
--- a/README.md
+++ b/README.md
@@ -240,12 +240,11 @@ class CmdLineApp(cmd2.Cmd):
def __init__(self):
self.maxrepeats = 3
-
- # Add stuff to shortcuts before calling base class initializer
- self.shortcuts.update({'&': 'speak'})
+ shortcuts = dict(self.DEFAULT_SHORTCUTS)
+ shortcuts.update({'&': 'speak'})
# Set use_ipython to True to enable the "ipy" command which embeds and interactive IPython shell
- super().__init__(use_ipython=False, multiline_commands=['orate'])
+ super().__init__(use_ipython=False, multiline_commands=['orate'], shortcuts=shortcuts)
# Make maxrepeats settable at runtime
self.settable['maxrepeats'] = 'max repetitions for speak command'