Fixing valid options for std.getopt

Jens Mueller jens.k.mueller at gmx.de
Thu Aug 11 01:02:38 PDT 2011


Jonathan M Davis wrote:
> On Wednesday, August 10, 2011 15:28 Jens Mueller wrote:
> > D's getopt is actually modeled after Perl's Getopt::Long
> > (http://perldoc.perl.org/Getopt/Long.html). Linux's getopt is actually
> > different in the details but I believe D's getopt is easy to use in
> > comparison.
> 
> Well, D's getopt should be fairly standard it terms of default behavior, and 
> it should be reasonably easy to use. As it stands, it's pretty easy to use. I 
> think that my main gripe is http://d.puremagic.com/issues/show_bug.cgi?id=5228 
> , but better sorting out its behavior like you're doing is a definite 
> improvement IMHO.

Didn't know of this report. There are also other regarding getopt that I
should check.
I will have a look when I'm finished with the current changes. Since the
report is concerned with exception reporting it'll be nice to have some
specific examples where the thrown exception is not good enough. Maybe
you can add the specific usage examples that you found.

Jens


More information about the Digitalmars-d mailing list