()
| 25 | |
| 26 | |
| 27 | def test_parser_collects_prefixes(): |
| 28 | ctx = click.Context(click.Command("test")) |
| 29 | parser = _OptionParser(ctx) |
| 30 | click.Option("+p", is_flag=True).add_to_parser(parser, ctx) |
| 31 | click.Option("!e", is_flag=True).add_to_parser(parser, ctx) |
| 32 | assert parser._opt_prefixes == {"-", "--", "+", "!"} |
nothing calls this directly
no test coverage detected