eddyuk
eddyuk

Reputation: 4190

c# console application arguments

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?

Upvotes: 2

Views: 807

Answers (2)

Fischermaen
Fischermaen

Reputation: 12458

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.

Upvotes: 0

CB.
CB.

Reputation: 60910

Check the CommandLine Parsing API from ere:

http://testapi.codeplex.com/

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

Upvotes: 1

Related Questions