Cmd2 application for demonstrating the use of argparse for command argument parsing.
(self, color: str)
| 28 | |
| 29 | class 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 |