We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbbc53 commit a77be18Copy full SHA for a77be18
main.py examples/hello_cmd2.pymain.py renamed to examples/hello_cmd2.py
@@ -1,5 +1,8 @@
1
#!/usr/bin/env python
2
# coding=utf-8
3
+"""
4
+This is intended to be a completely bare-bones cmd2 application suitable for rapid testing and debugging.
5
6
from cmd2 import cmd2
7
8
if __name__ == '__main__':
@@ -8,5 +11,6 @@
11
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
9
12
# debugging of your application via introspection on self.
10
13
app = cmd2.Cmd(use_ipython=True, persistent_history_file='cmd2_history.txt')
- app.locals_in_py = True
14
+ app.locals_in_py = True # Enable access to "self" within the py command
15
+ app.debug = True # Show traceback if/when an exception occurs
16
app.cmdloop()
0 commit comments