Bug 11608 – Inadequate documentation for std.getopt.config.passThrough
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-26T10:27:00Z
Last change time
2014-06-06T17:10:52Z
Keywords
spec
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2013-11-26T10:27:26Z
It works by rewriting the args[] so that only the unrecognized elements are left in args[] when getopt is through with it.
But the documentation doesn't say that, and could use an illuminating example.
Comment #1 by justin — 2014-06-06T17:10:52Z
This is now thoroughly explained in the paragraph in after the first example and the passThrough example. Particularly:
"In all cases, the command-line options that were parsed and used by getopt are removed from args. Whatever in the arguments did not look like an option is left in args for further processing by the program."