diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-01 12:44:48 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-01 12:44:48 -0400 |
commit | 8cf5bdfe32e3d513a80bcc0f1c302e2a21b9ae60 (patch) | |
tree | fc9545ebb5b4f645dcafb0016f957ccc83da98d4 /cmd2.py | |
parent | b4ce107a16fdf0111a6f024a8d3a99132a858623 (diff) | |
download | cmd2-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-x | cmd2.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |