summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-18 13:20:32 -0400
committerEric Lin <anselor@gmail.com>2018-04-18 13:20:32 -0400
commit154fa93acfc3de44bd4d5e15c6704865427ee7ba (patch)
tree99b136f91852799ea8648e69433de1bc1fcabdff /cmd2/cmd2.py
parent94bea939abd9b701ecfd22af0c1c94b5764ad483 (diff)
downloadcmd2-git-154fa93acfc3de44bd4d5e15c6704865427ee7ba.tar.gz
Adds main.py to run base cmd2 directly for development testing purposes.
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 1c9a3c30..bc3bc089 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -4047,10 +4047,3 @@ class CmdResult(namedtuple_with_two_defaults('CmdResult', ['out', 'err', 'war'])
return not self.err
-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=False)
- app.cmdloop()