arcanis / clipanion

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

fix: don't allow double negations for options with arity 1 #48

Closed paul-soporan closed 4 years ago

paul-soporan commented 4 years ago

This PR disallows double negations for options with arity 1, such as writing --no-no-redacted for an option called --no-redacted. This is because double negations don't make any sense, --no-redacted already implies the fact that it's always redacted unless this option is set, no matter how the stars align.