arcanis / clipanion

Type-safe CLI library / framework with no runtime dependencies
https://mael.dev/clipanion/
1.12k stars 65 forks source link

fix: Fix type inference for explicitly required positionals. #83

Closed cptpackrat closed 3 years ago

cptpackrat commented 3 years ago

Hi, The type definitions are giving the wrong type for positional arguments specified with { required: true }: required-positional-types

Not sure if there's a preferred way to do the definitions but this PR is my attempt + updated inference tests.

arcanis commented 3 years ago

Sorry for the delay! LGTM 👍