You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I missing something, or is there no way to specify that of option X, Y, and Z, I want to require one but not allow more than one? That is, other than using a .check() function? I can't use demandOption, because then they both have to be specified. I can use conflicts to enforce the mutual exclusivity, but looks like I need to use check to provide a function to do the check that at least one of the group has been defined. That's not a huge deal, though that then doesn't automatically give any hints in the right column of the help output.
Could a .demandOneOfOption(options...) be added to make this a little easier and perhaps integrate in with .help()?
The text was updated successfully, but these errors were encountered:
Am I missing something, or is there no way to specify that of option X, Y, and Z, I want to require one but not allow more than one? That is, other than using a
.check()
function? I can't usedemandOption
, because then they both have to be specified. I can use conflicts to enforce the mutual exclusivity, but looks like I need to use check to provide a function to do the check that at least one of the group has been defined. That's not a huge deal, though that then doesn't automatically give any hints in the right column of the help output.Could a
.demandOneOfOption(options...)
be added to make this a little easier and perhaps integrate in with.help()
?The text was updated successfully, but these errors were encountered: