Fixing valid options for std.getopt
Jonathan M Davis
jmdavisProg at gmx.com
Wed Aug 10 15:57:05 PDT 2011
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.
>From the little I looked at Linux' getopt, it was pretty bad in terms of
usability in comparison. So, I defintely don't think that we should follow it
in _that_ regard. But I do think that the default settings should follow what
is generally standard as far as how flags function and how they accept
arguments.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list