Usage to text & switch with value

Jul 6, 2011 at 10:29 AM

Hi great library thanks.

A couple of feature requests or  I may have missed how to do these in the docs...

I have a need to get the contents of showusage/showusagearguments to a string and therefore output to the logging framework i'm using - I have manually got the values but it would be useful to have the option.


 I want to depend the usage of a SwitchValue on the existance of another argument i.e. ensure you can only use the switch if the value has been supplied

so i have --path C:\MyDir --search, I only want the --search switch to be valid if --path has been supplied

I couldn't see any obvious way of doing this.



Jul 6, 2011 at 7:43 PM

1) use PrintUsage(TextWriter outputStream)

2) look through argument group certifications, one example is in the homepage (bottom, others in documentation)