getopt & single-letter options with parameters
Adrian Matoga
epi at atari8.info
Sun Aug 8 13:10:56 PDT 2010
> http://www.dsource.org/projects/phobos/changeset/1822
>
> Andrei
Thank you, now the description is clear.
By the way, shouldn't "--FOo" and "--bAr" in the following fragment be
rejected because of "caseSensitive" set just before them?
> By default options are case-insensitive. You can change that behavior
> by passing $(D getopt) the $(D caseSensitive) directive like this:
>
> ---------
> bool foo, bar;
> getopt(args,
> std.getopt.config.caseSensitive,
> "foo", &foo,
> "bar", &bar);
> ---------
>
> In the example above, "--foo", "--bar", "--FOo", "--bAr" etc. are
recognized.
Adrian
More information about the Digitalmars-d
mailing list