[Mono-list] What is the best way to parse command line arguments?

Alex Fort imphasing at gmail.com
Tue Dec 7 10:57:25 EST 2010


On Tue, Dec 7, 2010 at 10:50 AM, ArsenShnurkov <Arsen.Shnurkov at gmail.com> wrote:
>
> Life is Too Short to Parse Command Line Parameters
>
> http://tirania.org/blog/archive/2009/Feb-21.html
>
> System.Shell.CommandLine lives in the System.Core.dll assembly
> ...
> it was mistakenly public in the CTP — This was based on an intern project
> from a couple of years back that was mistakenly public in the .NET Framework
> 4.0 CTP.
>
> There is also:
> NDesk.Options — http://www.ndesk.org/Options It is implemented as a single
> C# source file (1,112 lines of code)
> NConsoler — http://nconsoler.csharpus.com/
> Mono.GetOptions —
> https://github.com/mono/mono/tree/master/mcs/class/Mono.Options/
> WPF TestApi library —
> http://blogs.msdn.com/b/ivo_manolov/archive/2008/12/17/9230331.aspx
> csharpoptparse — http://sourceforge.net/projects/csharpoptparse/
> GNU Getopt .NET — http://getopt.codeplex.com/
>
> What is the best option?

My personal preference is Mono.GetOptions. Very easy to work with.


Alex


More information about the Mono-list mailing list