summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-03 10:59:06 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-03 10:59:06 -0400
commitad3d32339f791faa31763fe3efb42d0be469ddef (patch)
tree8bedc45871f10cfb1973aadd15abab9d2562c902 /tests/conftest.py
parenta0d829e4105cd431198feb43534adaf953b090ba (diff)
downloadcmd2-git-ad3d32339f791faa31763fe3efb42d0be469ddef.tar.gz
Removed redundant list command
The extra functionality of listing a span (slice) of history items present in the list command has been incorporated into the existing history command and the list command has been removed. Unit tests have been updated accordingly. In the process a bug was fixed that was causing a crash if and end was supplied to the span but not a start.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 3977de5f..41bd007a 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -15,8 +15,8 @@ import cmd2
# Help text for base cmd2.Cmd application
BASE_HELP = """Documented commands (type help <topic>):
========================================
-_relative_load edit history load py run set shortcuts
-cmdenvironment help list pause quit save shell show
+_relative_load edit history pause quit save shell show
+cmdenvironment help load py run set shortcuts
"""
# Help text for the history command
@@ -24,7 +24,8 @@ HELP_HISTORY = """history [arg]: lists past commands issued
| no arg: list all
| arg is integer: list one history item, by index
- | arg is string: string search
+ | a..b, a:b, a:, ..b -> list history items by a span of indices (inclusive)
+ | arg is string: list all commands matching string search
| arg is /enclosed in forward-slashes/: regular expression search
Usage: history [options] (limit on which commands to include)