summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index dfb81b04..89ed1b7c 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -2294,5 +2294,7 @@ class CmdResult(namedtuple_with_two_defaults('CmdResult', ['out', 'err', 'war'])
if __name__ == '__main__':
# If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality.
- app = Cmd()
+ # But enable the ipy command if IPython is installed, which supports advanced interactive debugging of your app,
+ # via introspection on self.
+ app = Cmd(use_ipython=True)
app.cmdloop()