MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / SubcmdApp

Class SubcmdApp

tests/test_cmd2.py:4524–4533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…