summaryrefslogtreecommitdiff
path: root/cmd2/utils.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/utils.py
parent61698b2fc28daad462da9e459318e3208e0d7920 (diff)
downloadcmd2-git-db984de915944d6421e70b2064400fb3c0ec2f9c.tar.gz
Removed unneeded (optional) text from docstrings
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 92261c62..ae3bb535 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -41,8 +41,8 @@ def style(text: Any, *, fg: str = '', bg: str = '') -> str:
Applies style to text
:param text: Any object compatible with str.format()
- :param fg: (optional) Foreground color. Accepts color names like 'red' or 'blue'
- :param bg: (optional) Background color. Accepts color names like 'red' or 'blue'
+ :param fg: Foreground color. Accepts color names like 'red' or 'blue'
+ :param bg: Background color. Accepts color names like 'red' or 'blue'
"""
values = []
@@ -411,7 +411,7 @@ def center_text(msg: str, *, pad: str = ' ') -> str:
"""Centers text horizontally for display within the current terminal, optionally padding both sides.
:param msg: message to display in the center
- :param pad: (optional) if provided, the first character will be used to pad both sides of the message
+ :param pad: if provided, the first character will be used to pad both sides of the message
:return: centered message, optionally padded on both sides with pad_char
"""
term_width = shutil.get_terminal_size().columns