I want to develop a command line tool. I didn't build one before, but I used a few, (like mercurial). What steps do I need to take to know how to do that? So what is the problem:
Regular console application need to be invoked from the command line only from it's directory. Like:
C:\Projects\CommanLineProject\MyProjectConsole.exe
. I want to use it from the command line from any directory, likemercurial
.I don't sure how to parse and how to use the command-line arguments. There are programs that taking this arguments:
c:\>MyProject "c:\point to this path" /xml:"here is the another path" /r
.