New blog post: Bringing parser combinators to 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

2

If you have a fediverse account, you can quote this note from your own instance. Search https://hollo.social/@hongminhee/0198e9bc-0062-7254-ab5b-ee866c59c594 on your instance and quote it. (Note that quoting is not supported in Mastodon.)