summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-05-27 15:45:34 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-05-27 15:45:34 -0400
commit9dd00461b22085d3f16b4cc178a222c30fe95d11 (patch)
treee1644047665caf1d15860be388510fe7b7b61d1a /tests/conftest.py
parent916060bde828d8911ec2bbb4db54396212514481 (diff)
downloadcmd2-git-9dd00461b22085d3f16b4cc178a222c30fe95d11.tar.gz
Add the -a/--all flag to the history command for showing all commands including those persisted from previous sessions
Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 9d55eb4d..769e5a8f 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -59,6 +59,7 @@ shortcuts List available shortcuts
# Help text for the history command
HELP_HISTORY = """Usage: history [-h] [-r | -e | -o FILE | -t TRANSCRIPT | -c] [-s] [-x] [-v]
+ [-a]
[arg]
View, run, edit, save, or clear previously entered commands
@@ -88,7 +89,7 @@ formatting:
macros expanded, instead of typed commands
-v, --verbose display history and include expanded commands if they
differ from the typed command
-
+ -a, --all display all commands, including ones persisted from previous sessions
"""
# Output from the shortcuts command with default built-in shortcuts