Open ghost opened 9 years ago
Hi Lee,
You're unfortunately not going to get access to the guts that you want through the use of extensions methods, you'll have to mod the library itself.
I've just whipped up a rough commit with the bits that I think you would need. See the commit I've made in the new Issue-35 branch
I'm thinking the validation errors would be returned the same way as when values are unable to be parsed i.e through the result.Errors
property.
I've written a validation extension method using ICommandLineOptionFluent as the extensions key parameter, the method signature is as follows:
My question is how can I get the value to pass to the predicate, currently I see no way of doing this rendering the extension pointless. I was hoping to write something which I could contribute back.
As as an example of how I pictured this working:
Any advice?
Thanks, Lee.