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 7b9a51a commit 8483725Copy full SHA for 8483725
.gitignore
@@ -25,3 +25,6 @@ htmlcov
25
# mypy plugin for PyCharm
26
dmypy.json
27
dmypy.sock
28
+
29
+# cmd2 history file used in main.py
30
+cmd2_history.txt
main.py
@@ -7,6 +7,6 @@
7
8
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
9
# debugging of your application via introspection on self.
10
- app = cmd2.Cmd(use_ipython=True)
+ app = cmd2.Cmd(use_ipython=True, persistent_history_file='cmd2_history.txt')
11
app.locals_in_py = True
12
app.cmdloop()
0 commit comments