summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-03-04 22:48:33 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-03-04 22:48:33 -0500
commitd1a970bc5853aa6c1c52db923fb9b4d12ada7cf2 (patch)
tree0f664834a86d6543287cf89ace609f3c0b3ae535 /tests/conftest.py
parentf765be2ce360cf104999f1440f1b13e75cbd957c (diff)
parentdddf5d03c6aa9d7a4f6e953fe1529fa3d7743e39 (diff)
downloadcmd2-git-d1a970bc5853aa6c1c52db923fb9b4d12ada7cf2.tar.gz
Merged master into this branch and resolved conflicts in CHANGELOG
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 223389b9..f41afb64 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -28,7 +28,7 @@ except ImportError:
# Help text for base cmd2.Cmd application
BASE_HELP = """Documented commands (type help <topic>):
========================================
-alias help load py quit shell
+alias help load py quit shell
edit history macro pyscript set shortcuts
""" # noqa: W291
@@ -50,7 +50,8 @@ shortcuts List available shortcuts
"""
# Help text for the history command
-HELP_HISTORY = """Usage: history [-h] [-r | -e | -s | -o FILE | -t TRANSCRIPT | -c] [arg]
+HELP_HISTORY = """Usage: history [-h] [-r | -e | -o FILE | -t TRANSCRIPT | -c] [-s] [-x] [-v]
+ [arg]
View, run, edit, save, or clear previously entered commands
@@ -65,12 +66,17 @@ 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
- -s, --script output commands in script format
-o, --output-file FILE
- output commands to a script file
+ output commands to a script file, implies -s
-t, --transcript TRANSCRIPT
- output commands and results to a transcript file
+ output commands and results to a transcript file, implies -s
-c, --clear clear all history
+
+formatting:
+ -s, --script output commands in script format, i.e. without command numbers
+ -x, --expanded output expanded commands instead of entered command
+ -v, --verbose display history and include expanded commands if they differ from the typed command
+
"""
# Output from the shortcuts command with default built-in shortcuts