[Mono-list] A vaguely POSIXy Getopt class.

Miguel de Icaza miguel@ximian.com
14 Dec 2002 17:00:59 -0500


Hello!

> I wanted to write some apps that'd take arguments in the POSIXy way,
> and so I decided to implement a Getopt class which provides all the
> common things, and aside from the fact that I use an exception to
> show the end of args (other than using an output parameter boolean
> and checking that, I couldn't think of a saneish way), I'm fairly
> happy with it.  I have no idea if anyone but me would even begin to
> find this useful, but it follows in this message, and the usage is
> such (it will even do a lazy usage() style message for you, if you
> don't want to construct a prettier one yourself):

Have you seen the Mono.GetOptions assembly?  It is more targeted towards
GNU-ish command line handling though.

Miguel