diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-14 23:08:28 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-14 23:08:28 -0400 |
commit | 37c67e598095382469dd0b3982a667bc9401a038 (patch) | |
tree | b4f6bd25881f92f47f835ee9c31b087eabcd6108 /examples/cmd_as_argument.py | |
parent | 2311acf725e46257808a653319ccac73003d4a49 (diff) | |
parent | 57ac00c5001dd39dff0fb7800bb8d530c320d7be (diff) | |
download | cmd2-git-37c67e598095382469dd0b3982a667bc9401a038.tar.gz |
Merge branch 'master' into deprecate_34
Diffstat (limited to 'examples/cmd_as_argument.py')
-rwxr-xr-x | examples/cmd_as_argument.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/cmd_as_argument.py b/examples/cmd_as_argument.py index 538feac1..1e7901b9 100755 --- a/examples/cmd_as_argument.py +++ b/examples/cmd_as_argument.py @@ -31,8 +31,9 @@ class CmdLineApp(cmd2.Cmd): 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__(allow_cli_args=False, use_ipython=False, multiline_commands=['orate'], shortcuts=shortcuts) + super().__init__(allow_cli_args=False, use_ipython=True, multiline_commands=['orate'], shortcuts=shortcuts) + self.locals_in_py = True self.maxrepeats = 3 # Make maxrepeats settable at runtime self.settable['maxrepeats'] = 'max repetitions for speak command' |