summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-20 20:01:24 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-20 20:01:24 -0500
commit6bc3c7528b02f0160c31eb008f1218ee4c3344bc (patch)
tree48f369edfa4225e38afc5eca5695c14646e54979 /tests
parentbd948d727e0e13fa5fd77199c06fcd3dfdda9b39 (diff)
downloadcmd2-git-6bc3c7528b02f0160c31eb008f1218ee4c3344bc.tar.gz
History enhancements
History changes: - Unknown commands are no longer saved in the history - history command now has a -t option to generate a transcript based on commands in the history Also: - Moved examples transcripts from examples to examples/transcripts - Added a new transcript for use with the pirate.py example
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 030172a1..319e54fe 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -19,7 +19,7 @@ edit help history load py pyscript quit set shell shortcuts
"""
# Help text for the history command
-HELP_HISTORY = """usage: history [-h] [-r | -e | -o FILE] [-s] [arg]
+HELP_HISTORY = """usage: history [-h] [-r | -e | -s | -o FILE | -t TRANSCRIPT] [arg]
View, run, edit, and save previously entered commands.
@@ -34,9 +34,11 @@ optional arguments:
-h, --help show this help message and exit
-r, --run run selected history items
-e, --edit edit and then run selected history items
- -o FILE, --output-file FILE
- output to file
-s, --script script format; no separation lines
+ -o FILE, --output-file FILE
+ output commands to a script file
+ -t TRANSCRIPT, --transcript TRANSCRIPT
+ output commands and results to a transcript file
"""
# Output from the shortcuts command with default built-in shortcuts