diff options
author | kotfu <kotfu@kotfu.net> | 2019-02-09 19:38:56 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2019-02-09 19:38:56 -0700 |
commit | b7fc503fcff1b8454df7f33a375c83b045ed8725 (patch) | |
tree | 10352ce853bafc21a6080c4b79d7a92f775d2263 /tests/conftest.py | |
parent | 3911335e5533405dd7f65195fe1f20bf3ac08ef8 (diff) | |
download | cmd2-git-b7fc503fcff1b8454df7f33a375c83b045ed8725.tar.gz |
Move the rest of the history tests into test_history.py
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 7bc8e7d0..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 | -v | -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,13 +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 - -v, --verbose display history and include expanded commands if they differ from the typed command. + 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 |