diff options
author | kotfu <kotfu@kotfu.net> | 2018-01-14 22:27:52 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-01-14 22:27:52 -0700 |
commit | eb12773ab8cba72bfa593f53533423e25d823765 (patch) | |
tree | d02afbd54a3443ac96ca94370207b7b1cf37f3b4 /tests/conftest.py | |
parent | 6454f4e3ba61bdac9cdd09528d58261ecb235b5e (diff) | |
parent | 07e37b2d081161af32feb64890b1fd4236bf5f13 (diff) | |
download | cmd2-git-eb12773ab8cba72bfa593f53533423e25d823765.tar.gz |
Merge branch 'arglist' of github.com:python-cmd2/cmd2 into arglist
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 97116b48..21899f36 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,19 +20,20 @@ cmdenvironment help load pyscript run set shortcuts """ # Help text for the history command -HELP_HISTORY = """history [arg]: lists past commands issued +HELP_HISTORY = """usage: history [-h] [-s] [arg [arg ...]] - | no arg: list all - | arg is integer: list one history item, by index - | 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 +list past commands issued -Usage: history [options] (limit on which commands to include) +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 -Options: +optional arguments: -h, --help show this help message and exit - -s, --script Script format; no separation lines + -s, --script script format; no separation lines """ # Output from the shortcuts command with default built-in shortcuts |