diff options
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -26,7 +26,8 @@ Main Features - Pipe command output to shell commands with `|` - Redirect command output to file with `>`, `>>` - Bare `>`, `>>` with no filename send output to paste buffer (clipboard) -- `py` enters interactive Python console (opt-in `ipy` for IPython console) +- Optional `py` command runs interactive Python console which can be used to debug your application +- Optional `ipy` command runs interactive IPython console which can be used to debug your application - Option to display long output using a pager with ``cmd2.Cmd.ppaged()`` - Multi-line commands - Special-character command shortcuts (beyond cmd's `?` and `!`) @@ -249,9 +250,8 @@ class CmdLineApp(cmd2.Cmd): shortcuts = dict(cmd2.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'], shortcuts=shortcuts) - + super().__init__(multiline_commands=['orate'], shortcuts=shortcuts) + # Make maxrepeats settable at runtime self.add_settable(cmd2.Settable('maxrepeats', int, 'max repetitions for speak command')) |