visual studio 2008 - Command line parser NDesk.Options - How to Indicate mandatory parameters -
i have console application made in .net framework 3.5 , visual studio 2008.
this app can mandatory parameters , options, example:
myapp.exe -v -f foldername hostname user pwd
- -v , -f options
- hostname, user , pwd mandatory parameters
i have checked ndesk.options recognize mandatory parameters unknown parameters since not registered options , place in list of string once parse function called.
so how can i:
- indicate ndesk.options these parameters (hostname, user , pwd) mandatory , need entered?
- indicate maximum of paramters permitted 3.
Comments
Post a Comment