Bug 16420 – Incorrect example in std.getopt docs

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-23T18:29:00Z
Last change time
2016-10-01T11:46:53Z
Keywords
pull
Assigned to
ag0aep6g
Creator
kulhanek.5

Comments

Comment #0 by kulhanek.5 — 2016-08-23T18:29:21Z
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".
Comment #1 by ag0aep6g — 2016-08-23T20:58:21Z
Comment #2 by github-bugzilla — 2016-08-23T21:33:47Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/2be9e31ef663e28ed71c4b8c8a9271c417297e4f fix issue 16420 - Incorrect example in std.getopt docs https://github.com/dlang/phobos/commit/b2b9e87565b174311c296f9a98e40f3c1edc5808 Merge pull request #4745 from aG0aep6G/16420 fix issue 16420 - Incorrect example in std.getopt docs
Comment #3 by github-bugzilla — 2016-10-01T11:46:53Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/2be9e31ef663e28ed71c4b8c8a9271c417297e4f fix issue 16420 - Incorrect example in std.getopt docs https://github.com/dlang/phobos/commit/b2b9e87565b174311c296f9a98e40f3c1edc5808 Merge pull request #4745 from aG0aep6G/16420