diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 15:45:34 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-05-27 15:45:34 -0400 |
commit | 9dd00461b22085d3f16b4cc178a222c30fe95d11 (patch) | |
tree | e1644047665caf1d15860be388510fe7b7b61d1a /docs | |
parent | 916060bde828d8911ec2bbb4db54396212514481 (diff) | |
download | cmd2-git-9dd00461b22085d3f16b4cc178a222c30fe95d11.tar.gz |
Add the -a/--all flag to the history command for showing all commands including those persisted from previous sessions
Also:
- History class has been modified to keep track of the session start index
- History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default
- If a start index is manually specified, then it automatically includes the full search
- Updates unit tests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/freefeatures.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst index 11b5de68..05b5391d 100644 --- a/docs/freefeatures.rst +++ b/docs/freefeatures.rst @@ -258,7 +258,7 @@ All cmd_-based applications on systems with the ``readline`` module also provide `Readline Emacs editing mode`_. With this you can, for example, use **Ctrl-r** to search backward through the readline history. -``cmd2`` adds the option of making this readline history persistent via optional arguments to ``cmd2.Cmd.__init__()``: +``cmd2`` adds the option of making this history persistent via optional arguments to ``cmd2.Cmd.__init__()``: .. automethod:: cmd2.cmd2.Cmd.__init__ |