New blog post: Bringing parser combinators to #TypeScript CLI parsing with Optique
- Compose parsers like
or(option("-a"), option("-b"))
- TypeScript infers discriminated unions automatically
- Inspired by Haskell's optparse-applicative
https://dev.to/hongminhee/optique-type-safe-cli-parser-combinators-39md