[Issue 16420] New: Incorrect example in std.getopt docs
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 23 11:29:21 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16420
Issue ID: 16420
Summary: Incorrect example in std.getopt docs
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/phobos/std_getopt.html
OS: All
Status: NEW
Severity: minor
Priority: P3
Component: phobos
Assignee: nobody at puremagic.com
Reporter: kulhanek.5 at wright.edu
The documentation for std.getopt includes the following example:
=================
bool foo, bar;
getopt(args,
std.getopt.config.caseSensitive,
"foo", &foo,
"bar", &bar);
In the example above, "--foo", "--bar", "--FOo", "--bAr" etc. are recognized.
The directive is active til the end of getopt, or until the converse directive
caseInsensitive is encountered:
=================
Presumably "recognized" was supposed to be "rejected".
--
More information about the Digitalmars-d-bugs
mailing list