cmd-ts icon indicating copy to clipboard operation
cmd-ts copied to clipboard

Add mutuallyExclusive combinator

Open Schniz opened this issue 4 years ago • 1 comments

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?

Schniz avatar Feb 15 '21 10:02 Schniz

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

vercel[bot] avatar Feb 15 '21 10:02 vercel[bot]