cmd-ts
cmd-ts copied to clipboard
Add mutuallyExclusive combinator
There's something that makes me sad regarding the current implementation: we can't do exclusive or for flags like --dev
and --prod
, because they have defaults. Should I make it a special case? Should we ignore default values? Just like I have added nodes
to the result of a parsing, I can add fromDefaultValue: boolean
, and ignore these. But then, what would the output be? of the first default value?
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/schniz/clio-ts/kzh1zfba4
✅ Preview: https://clio-ts-git-add-either-parser.schniz.vercel.app