Skip to content

Commit

Permalink
Added deprecation note to apply_style attribute of pwarning()
Browse files Browse the repository at this point in the history
  • Loading branch information
anselor committed Jul 28, 2023
1 parent 100ed9f commit a55bb1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,8 +1160,12 @@ def pwarning(
:param msg: object to print
:param end: string appended after the end of the message, default a newline
:param apply_style: If True, then ansi.style_warning will be applied to the message text. Set to False in cases
where the message text already has the desired style. Defaults to True.
:param apply_style:
If True, then ansi.style_warning will be applied to the message text. Set to False in cases
where the message text already has the desired style. Defaults to True.
.. deprecated: 2.4.4
Use :meth:`~cmd2.Cmd.print_to` instead to print to stderr without style applied.
:param paged: If True, pass the output through the configured pager.
:param chop: If paged is True, True to truncate long lines or False to wrap long lines.
"""
Expand Down

0 comments on commit a55bb1e

Please sign in to comment.