Some helpers for interdependent/mutually exclusive arguments #150
wolfgang42
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Interesting. I wonder if there is any way to generalize these into validators ( |
Beta Was this translation helpful? Give feedback.
3 replies
-
Implementation is in #182 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My script has a couple of places where there are flags that are mutually exclusive, so I wrote a couple helper functions to make it easy to validate these cases, reproduced here in case someone else needs the same thing. (Public domain/CC0 if you're worried about licensing.)
Usage is something like:
(Obviously all of these
$args
entries must be declared and optional.)Beta Was this translation helpful? Give feedback.
All reactions