diff options
Diffstat (limited to 'examples/decorator_example.py')
-rwxr-xr-x | examples/decorator_example.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/decorator_example.py b/examples/decorator_example.py index 5d127619..873d37cd 100755 --- a/examples/decorator_example.py +++ b/examples/decorator_example.py @@ -19,12 +19,11 @@ import cmd2 class CmdLineApp(cmd2.Cmd): """ Example cmd2 application. """ def __init__(self, ip_addr=None, port=None, transcript_files=None): - self.multiline_commands = ['orate'] self.shortcuts.update({'&': 'speak'}) self.maxrepeats = 3 # Set use_ipython to True to enable the "ipy" command which embeds and interactive IPython shell - super().__init__(use_ipython=False, transcript_files=transcript_files) + super().__init__(use_ipython=False, transcript_files=transcript_files, multiline_commands=['orate']) # Make maxrepeats settable at runtime self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed' |