| 4522 | import argparse |
| 4523 | |
| 4524 | class SubcmdApp(cmd2.Cmd): |
| 4525 | def __init__(self) -> None: |
| 4526 | super().__init__() |
| 4527 | |
| 4528 | root_parser = cmd2.Cmd2ArgumentParser() |
| 4529 | root_parser.add_subparsers() |
| 4530 | |
| 4531 | @cmd2.with_argparser(root_parser) |
| 4532 | def do_root(self, _args: argparse.Namespace) -> None: |
| 4533 | pass |
| 4534 | |
| 4535 | app = SubcmdApp() |
| 4536 |
no outgoing calls
searching dependent graphs…