summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 14:01:56 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 14:01:56 -0500
commitf2d887f611b62467dc26a85df185c984d163f455 (patch)
tree4560c8ef05ca0665ba82a353f8ff60c3161371b3 /tests
parent8d9c2813134c38f80ead43578d97b15a44503471 (diff)
downloadcmd2-git-f2d887f611b62467dc26a85df185c984d163f455.tar.gz
Fixed expected value of "help history" for unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 18b38724..05721eb4 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -20,20 +20,24 @@ edit history py quit save shell show
"""
# Help text for the history command
-HELP_HISTORY = """usage: history [-h] [-s] [arg [arg ...]]
+HELP_HISTORY = """usage: history [-h] [-s] [-r | -e | -o FILE] [arg]
-list past commands issued
+run, edit, and save past commands
positional arguments:
- arg no arg list all
- arg is integer by index
- a..b, a:b, a:, ..b by indices (inclusive)
- arg is string containing string
- arg is /regex/ matching regular expression regex
+ arg empty all history items
+ a one history item by number
+ a..b, a:b, a:, ..b items by indices (inclusive)
+ [string] items containing string
+ /regex/ items matching regular expression
optional arguments:
- -h, --help show this help message and exit
- -s, --script script format; no separation lines
+ -h, --help show this help message and exit
+ -s, --script script format; no separation lines
+ -r, --run run selected history items
+ -e, --edit edit and then run selected history items
+ -o FILE, --output-file FILE
+ output to file
"""
# Output from the shortcuts command with default built-in shortcuts