| 4569 | |
| 4570 | def 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 |
no outgoing calls
searching dependent graphs…