diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-19 21:51:24 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-19 21:51:24 -0600 |
commit | 477666d0b3e097fb831729644b8861a983805981 (patch) | |
tree | 02217d3d2bb03499e511d8dd1774d161bb019a0f /main.py | |
parent | b7cfb130c7c914478936366b748b04234b031119 (diff) | |
parent | 58fdd089cc064e71502dc1f094fd906d30523886 (diff) | |
download | cmd2-git-477666d0b3e097fb831729644b8861a983805981.tar.gz |
Merge branch 'master' into ply
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main.py b/main.py new file mode 100755 index 00000000..9e340600 --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# coding=utf-8 + +from cmd2 import Cmd + +if __name__ == '__main__': + # If run as the main application, simply start a bare-bones cmd2 application with only built-in functionality. + + # Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive + # debugging of your application via introspection on self. + app = Cmd(use_ipython=True) + app.cmdloop() |