summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-07-01 12:44:48 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-07-01 12:44:48 -0400
commit8cf5bdfe32e3d513a80bcc0f1c302e2a21b9ae60 (patch)
treefc9545ebb5b4f645dcafb0016f957ccc83da98d4 /cmd2.py
parentb4ce107a16fdf0111a6f024a8d3a99132a858623 (diff)
downloadcmd2-git-8cf5bdfe32e3d513a80bcc0f1c302e2a21b9ae60.tar.gz
Added some unit tests related to help and the help menu
Also: - When running cmd2.py as main, enable use of IPython if present to aid with debugging and troubleshooting - Deleted a unit test which wasn't reliable
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()