Usage to text & switch with value

Jul 6, 2011 at 11: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.

Also

 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.

Thanks

Matt 


Coordinator
Jul 6, 2011 at 8:43 PM

1) use PrintUsage(TextWriter outputStream)

2) look through argument group certifications, one example is in the homepage (bottom http://commandlineparser.codeplex.com/, others in documentation)