Reputation: 4190
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
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
Reputation: 60910
Check the CommandLine Parsing API from ere:
I've used it in any commandline application I've dev.
Upvotes: 1