MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

cmd2/rich_utils.py:589–601  ·  view source on GitHub ↗

Cmd2RichArgparseConsole initializer. :param file: optional file object where the console should write to. Defaults to sys.stdout.

(self, *, file: IO[str] | None = None)

Source from the content-addressed store, hash-verified

587 """
588
589 def __init__(self, *, file: IO[str] | None = None) -> None:
590 """Cmd2RichArgparseConsole initializer.
591
592 :param file: optional file object where the console should write to.
593 Defaults to sys.stdout.
594 """
595 super().__init__(
596 file=file,
597 soft_wrap=False,
598 markup=False,
599 emoji=False,
600 highlight=False,
601 )
602
603
604class Cmd2ExceptionConsole(Cmd2BaseConsole):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected