Print objects to sys.stderr. :param style: optional style to apply to output. Defaults to Cmd2Style.ERROR. For details on the other parameters, refer to the `print_to` method documentation.
(
self,
*objects: Any,
sep: str = " ",
end: str = "\n",
style: StyleType | None = Cmd2Style.ERROR,
soft_wrap: bool = True,
justify: JustifyMethod | None = None,
emoji: bool = False,
markup: bool = False,
highlight: bool = False,
rich_print_kwargs: Mapping[str, Any] | None = None,
**kwargs: Any, # noqa: ARG002
)
| 1547 | ) |
| 1548 | |
| 1549 | def perror( |
| 1550 | self, |
| 1551 | *objects: Any, |
| 1552 | sep: str = " ", |
| 1553 | end: str = "\n", |
| 1554 | style: StyleType | None = Cmd2Style.ERROR, |
| 1555 | soft_wrap: bool = True, |
| 1556 | justify: JustifyMethod | None = None, |
| 1557 | emoji: bool = False, |
| 1558 | markup: bool = False, |
| 1559 | highlight: bool = False, |
| 1560 | rich_print_kwargs: Mapping[str, Any] | None = None, |
| 1561 | **kwargs: Any, # noqa: ARG002 |
| 1562 | ) -> None: |
| 1563 | """Print objects to sys.stderr. |
| 1564 | |
| 1565 | :param style: optional style to apply to output. Defaults to Cmd2Style.ERROR. |
| 1566 | |
| 1567 | For details on the other parameters, refer to the `print_to` method documentation. |
| 1568 | """ |
| 1569 | self.print_to( |
| 1570 | sys.stderr, |
| 1571 | *objects, |
| 1572 | sep=sep, |
| 1573 | end=end, |
| 1574 | style=style, |
| 1575 | soft_wrap=soft_wrap, |
| 1576 | justify=justify, |
| 1577 | emoji=emoji, |
| 1578 | markup=markup, |
| 1579 | highlight=highlight, |
| 1580 | rich_print_kwargs=rich_print_kwargs, |
| 1581 | ) |
| 1582 | |
| 1583 | def psuccess( |
| 1584 | self, |