Bug 22394 – std.getopt cannot handle "-"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-16T14:08:50Z
Last change time
2021-10-17T01:48:58Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2021-10-16T14:08:50Z
"-" is commonly used to refer to standard input. This convention is followed by many tools, including GNU coreutils. std.getopt currently always throws if it sees an "-" argument, unless Config.passThrough mode is enabled.
Comment #1 by dlang-bot — 2021-10-16T14:10:32Z
@CyberShadow created dlang/phobos pull request #8287 "Fix Issue 22394 - std.getopt cannot handle "-"" fixing this issue: - Fix Issue 22394 - std.getopt cannot handle "-" https://github.com/dlang/phobos/pull/8287
Comment #2 by dlang-bot — 2021-10-17T01:48:58Z
dlang/phobos pull request #8287 "Fix Issue 22394 - std.getopt cannot handle "-"" was merged into master: - 20d30241ebb5aaac037d8875e51a01830b56dc29 by Vladimir Panteleev: Fix Issue 22394 - std.getopt cannot handle "-" https://github.com/dlang/phobos/pull/8287