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

Method __init__

examples/argparse_example.py:30–35  ·  view source on GitHub ↗

Cmd2 application for demonstrating the use of argparse for command argument parsing.

(self, color: str)

Source from the content-addressed store, hash-verified

28
29class ArgparsingApp(cmd2.Cmd):
30 def __init__(self, color: str) -> None:
31 """Cmd2 application for demonstrating the use of argparse for command argument parsing."""
32 super().__init__(include_ipy=True)
33 self.intro = stylize(
34 "cmd2 has awesome decorators to make it easy to use Argparse to parse command arguments", style=color
35 )
36
37 ## ------ Basic examples of using argparse for command argument parsing -----
38

Callers

nothing calls this directly

Calls 1

stylizeFunction · 0.90

Tested by

no test coverage detected