summaryrefslogtreecommitdiff
path: root/cmd2/history.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 00:24:08 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 00:24:08 -0400
commitdb984de915944d6421e70b2064400fb3c0ec2f9c (patch)
tree1f485d1bb6a0bca502ceaf06d617ab3524649e73 /cmd2/history.py
parent61698b2fc28daad462da9e459318e3208e0d7920 (diff)
downloadcmd2-git-db984de915944d6421e70b2064400fb3c0ec2f9c.tar.gz
Removed unneeded (optional) text from docstrings
Diffstat (limited to 'cmd2/history.py')
-rw-r--r--cmd2/history.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/history.py b/cmd2/history.py
index da16285d..dbc9a3a4 100644
--- a/cmd2/history.py
+++ b/cmd2/history.py
@@ -153,7 +153,7 @@ class History(list):
"""Return an index or slice of the History list,
:param span: string containing an index or a slice
- :param include_persisted: (optional) if True, then retrieve full results including from persisted history
+ :param include_persisted: if True, then retrieve full results including from persisted history
:return: a list of HistoryItems
This method can accommodate input in any of these forms:
@@ -227,7 +227,7 @@ class History(list):
"""Find history items which contain a given string
:param search: the string to search for
- :param include_persisted: (optional) if True, then search full history including persisted history
+ :param include_persisted: if True, then search full history including persisted history
:return: a list of history items, or an empty list if the string was not found
"""
def isin(history_item):
@@ -244,7 +244,7 @@ class History(list):
"""Find history items which match a given regular expression
:param regex: the regular expression to search for.
- :param include_persisted: (optional) if True, then search full history including persisted history
+ :param include_persisted: if True, then search full history including persisted history
:return: a list of history items, or an empty list if the string was not found
"""
regex = regex.strip()