(self)
| 2783 | ) |
| 2784 | |
| 2785 | def test_optional_subparsers(self): |
| 2786 | parser = ErrorRaisingArgumentParser() |
| 2787 | subparsers = parser.add_subparsers(dest='command', required=False) |
| 2788 | subparsers.add_parser('run') |
| 2789 | # No error here |
| 2790 | ret = parser.parse_args(()) |
| 2791 | self.assertIsNone(ret.command) |
| 2792 | |
| 2793 | def test_subparser_help_with_parent_required_optional(self): |
| 2794 | parser = ErrorRaisingArgumentParser(prog='PROG') |
nothing calls this directly
no test coverage detected