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

Class SubcmdErrorApp

tests/test_cmd2.py:4571–4583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4569
4570def test_subcommand_attachment_errors() -> None:
4571 class SubcmdErrorApp(cmd2.Cmd):
4572 def __init__(self) -> None:
4573 super().__init__()
4574
4575 test_parser = cmd2.Cmd2ArgumentParser()
4576 test_parser.add_subparsers(required=True)
4577
4578 @cmd2.with_argparser(test_parser)
4579 def do_test(self, _statement: cmd2.Statement) -> None:
4580 pass
4581
4582 def do_no_argparse(self, _statement: cmd2.Statement) -> None:
4583 pass
4584
4585 app = SubcmdErrorApp()
4586

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…