(self, parser: parseopt.Parser)
| 247 | assert args.func_arg is True |
| 248 | |
| 249 | def test_drop_short_3(self, parser: parseopt.Parser) -> None: |
| 250 | parser.addoption("--func-arg", "--funcarg", "--doit", action="store_true") |
| 251 | args = parser.parse(["abcd"]) |
| 252 | assert args.func_arg is False |
| 253 | assert args.file_or_dir == ["abcd"] |
| 254 | |
| 255 | def test_drop_short_help0(self, parser: parseopt.Parser) -> None: |
| 256 | parser.addoption("--func-args", "--doit", help="foo", action="store_true") |