Saturday, January 17, 2015

Console Application argument parsing: solved

I'm working on a codebase which has a lot of console applications and has several lines of code to deal with parsing the command line arguments. Well ... that can be removed since I found this little friend on NuGet: https://www.nuget.org/packages/CommandLineParser/


First of all - I can remove all the command line argument parsing code and just use the code demonstrated below.
Second of all - with 3 lines of code, a --help will be implemented showing you all the possible options for the command line tools.



No comments:

Post a Comment