2

I have to implement a C# console application which performs various operations taking in parameters.

mytool.exe operationverb --param1 value1 --param2 value2

Is there a command line parser which can do this. I have tried utilities like NDesk.Options, where I can do

mytool.exe --operation operationverb --param1 value1 --param2 value2

I don't want users to do "--operation". What is the best way to achieve this?

1 Answer 1

4

The Command Line Parser Library lets you define a syntax similar to git or other popular command line tools.

yourapp verb1 --opt-1 --opt-2

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.