Command line parsing
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 14 08:14:01 PDT 2016
On Saturday, 14 May 2016 at 14:29:04 UTC, Russel Winder wrote:
> However if your use of getopt is different from that above, I
> can see that this argument is taking place by two people
> observing two completely different things, and is therefore not
> a discussion or an argument, but a point for a reboot of the
> thread!
Indeed, D's getopt is almost nothing like C's getopt aside from
the name - it is a from-scratch implementation more inspired by
Perl than by C.
from the docs:
"Credits
This module and its documentation are inspired by Perl's
Getopt::Long module. The syntax of D's getopt is simpler than its
Perl counterpart because getopt infers the expected parameter
types from the static types of the passed-in pointers."
More information about the Digitalmars-d
mailing list