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

Ian Norton-Badrul ian.norton-badrul at thales-esecurity.com
Tue Dec 7 11:07:13 EST 2010


On Tue, Dec 07, 2010 at 03:57:25PM +0000, Alex Fort wrote:
> 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.

I was under the impresison that NDesk.Options eventually became
Mono.Options?

Ian
 
> 
> Alex
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 
Ian Norton
Software Engineer
+44 1223 723 600

Thales e-Security Limited is incorporated in England and Wales with company
registration number 2518805. Its registered office is located at 2 Dashwood
Lang Road, The Bourne Business Park, Addlestone, Nr. Weybridge, Surrey KT15
2NX.

The information contained in this e-mail is confidential. It may also be
privileged. It is intended only for the stated addressee(s) and access to it by
any other person is unauthorised. If you are not an addressee or the intended
addressee, you must not disclose, copy, circulate or in any other way use or
rely on the information contained in this e-mail. Such unauthorised use may be
unlawful. If you have received this e-mail in error, please inform us
immediately on +44 (0)1223 723600 and delete it and all copies from your
system.  Commercial matters detailed or referred to in this e-mail are subject
to a written contract signed for and on behalf of Thales e-Security Limited.                                 


More information about the Mono-list mailing list