2

In console applications, when you run exe file (such as ipconfig) you can add parameters, such as /?, or some times its with - . My question is, is there some build in resource or right way to do it or its just on programmers decision and simple regex usage?

2

2 Answers 2

1

Check the CommandLine Parsing API from ere:

http://testapi.codeplex.com/

I've used it in any commandline application I've dev.

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

Comments

0

That is completely a programmers decision. It is a good (recommended) way, to do nothing completely new to the user. So, if your program accepts "/" and "-" as well, it will be easy to use.

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.