Open ravensorb opened 8 years ago
Hm, I'm not sure I correctly understand what you mean. Could you provide the actual command line for your examples? And the resulting property values?
Sure. Below are a few example permutations.
If you look at the class above, "n" can be used with both "f" and "a" however "f" can ONLY be used with "n", if "f", "a", and "n" were used it would be invalid. This results in valid combinations of "f" and "a" or "f" and "i".
Valid:
Invalid
The value of this is allow certain properties to be used across multiple sets while still apply some sort of scope to them so that they cannot be used across ALL scopes.
Does that help?
Yes that makes it clearer. I was hoping we could use the MutuallyExclusive
setting, but this relationship is more complex. I think your best bet is to check this yourself after parsing is completed. But these rules might also be tricky to adequately explain to your users. Maybe split it up into several verbs with similar options?
The 2nd is what I am doing now -- the hard part is it requires a LOT of duplicate properties with slightly different names which makes the code complex in using the various options class.
In the example above you'd end up with Name and NameWithFileName, Age and AgeWithFileName and then you would have "FileName" in both of the verb classes.
Hi, I also would need this functionality. It would really make the options relate one to another more directly, avoiding boilerplate code.
Consider the following idea below.
It is setup to have 2 properties that can always be supplied (Start/End Date), one property that can be supplied with the "file" and the "filter1" set, and then 1 property for the "filter1", 1 property for the "filter2" and 1 property for the "file" set. Is this possible?