I'm being forced (by engineering policy) to use Getopt::Euclid to parse arguments to my Perl program. I have three arguments, foo, bar and blah.
It is legitimate to have none of these and use other arguments instead.
If foo is present than exactly one of bar or blah should be present, and if either bar or blah are present, than foo must be present.
After reading the CPAN documentation, I don't see any way to get Euclid to detect and enforce these restrictions. If Euclid CAN enforce these restrictions, I'd like to understand how.
Otherwise, I'll detect the conditions myself, but would like to coax Euclid into generating the --help output if the conditions are violated, but can't see how to do that from inside the program either. Ideas?