summaryrefslogtreecommitdiff
path: root/examples/persistent_history.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-11 17:39:11 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-11 17:39:11 -0400
commit77633bc4498d6f11b07ea0a3bd13d4830f809ff8 (patch)
tree037879fb49353ac66a5d2a3e6c74f0cb3a3b0dd2 /examples/persistent_history.py
parent1aee0316973873e8967679f6778952c1d696866a (diff)
downloadcmd2-git-77633bc4498d6f11b07ea0a3bd13d4830f809ff8.tar.gz
Removed support for cmd.cmdqueue
allow_cli_args is now an argument to __init__ instead of a cmd2 class member
Diffstat (limited to 'examples/persistent_history.py')
-rwxr-xr-xexamples/persistent_history.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/persistent_history.py b/examples/persistent_history.py
index 12d8b813..e88fd5d9 100755
--- a/examples/persistent_history.py
+++ b/examples/persistent_history.py
@@ -15,8 +15,7 @@ class Cmd2PersistentHistory(cmd2.Cmd):
:param hist_file: file to load readline history from at start and write it to at end
"""
- super().__init__(persistent_history_file=hist_file, persistent_history_length=500)
- self.allow_cli_args = False
+ super().__init__(persistent_history_file=hist_file, persistent_history_length=500, allow_cli_args=False)
self.prompt = 'ph> '
# ... your class code here ...