diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 00:24:08 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 00:24:08 -0400 |
commit | db984de915944d6421e70b2064400fb3c0ec2f9c (patch) | |
tree | 1f485d1bb6a0bca502ceaf06d617ab3524649e73 /cmd2/utils.py | |
parent | 61698b2fc28daad462da9e459318e3208e0d7920 (diff) | |
download | cmd2-git-db984de915944d6421e70b2064400fb3c0ec2f9c.tar.gz |
Removed unneeded (optional) text from docstrings
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 6 |
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 |