summaryrefslogtreecommitdiff
path: root/examples/cmd_as_argument.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cmd_as_argument.py')
-rwxr-xr-xexamples/cmd_as_argument.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/cmd_as_argument.py b/examples/cmd_as_argument.py
index dcec81c8..48397a42 100755
--- a/examples/cmd_as_argument.py
+++ b/examples/cmd_as_argument.py
@@ -30,14 +30,13 @@ class CmdLineApp(cmd2.Cmd):
def __init__(self):
self.allow_cli_args = False
- self.multiline_commands = ['orate']
self.maxrepeats = 3
# Add stuff to shortcuts before calling base class initializer
self.shortcuts.update({'&': 'speak'})
# Set use_ipython to True to enable the "ipy" command which embeds and interactive IPython shell
- super().__init__(use_ipython=False)
+ super().__init__(use_ipython=False, multiline_commands=['orate'])
# Make maxrepeats settable at runtime
self.settable['maxrepeats'] = 'max repetitions for speak command'