diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-14 18:12:39 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-14 18:12:39 -0400 |
commit | 85dbe035114330a15abd5af6e098ef6948fa6cb0 (patch) | |
tree | e087dfa160eba882dcbd623609cab763efbd1ebc /examples/persistent_history.py | |
parent | 3329e5fec21f2cc4479bb3358170e2226885ab3b (diff) | |
parent | ddd07f9cd6d72baca1232ae98856cf3b3d564706 (diff) | |
download | cmd2-git-85dbe035114330a15abd5af6e098ef6948fa6cb0.tar.gz |
Merge branch 'master' into history_fixes
Diffstat (limited to 'examples/persistent_history.py')
-rwxr-xr-x | examples/persistent_history.py | 3 |
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 ... |