swansonk14 / typed-argument-parser

Typed argument parser for Python
MIT License
497 stars 40 forks source link

`underscores_to_dashes` should not apply to required positional arguments #50

Closed jakkes closed 3 years ago

jakkes commented 3 years ago

Required positional arguments cannot (in argparse) be given a name including -. These require _. Thus, using TAP, it is currently not possible to run with underscores on required positional arguments, and dashes on optional keyword arguments.

martinjm97 commented 3 years ago

Hi @jakkes,

Great find! Does https://github.com/swansonk14/typed-argument-parser/commit/f30ffbe46aa08a68aa84f8edd6062fa9e69eea68 resolve this?

Thanks, Kyle and Jesse

jakkes commented 3 years ago

Looks like it.