← Back to index
|
Original Bugzilla link
Bug 5762 – getopt: short option parameter read incorrectly when bundling enabled
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-03-21T10:11:00Z
Last change time
2013-12-18T08:55:50Z
Assigned to
nobody
Creator
adrian
See also
https://d.puremagic.com/issues/show_bug.cgi?id=11764
Comments
Comment #0
by adrian — 2011-03-21T10:11:32Z
Source: import std.getopt; import std.stdio; void main(string args[]) { string str; getopt(args, config.bundling, "a|addr", &str); writeln(str); } Invoked with short (single-dash) option reads parameter incorrectly. >test.exe -a=-0x12 -= With double dash it's ok. >test.exe --a=-0x12 -0x12 Works also when bundling is disabled.
Comment #1
by andrei — 2013-12-16T15:54:12Z
https://github.com/D-Programming-Language/phobos/pull/1779/
Comment #2
by github-bugzilla — 2013-12-18T00:37:01Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/b53890b07806ae652bf839afd803bc738fc88313
Fix issue 5762
https://github.com/D-Programming-Language/phobos/commit/41bbb3d0ed8f90e6c5ac1f53325c2854a07271e6
Merge pull request #1779 from andralex/getopt Fix issue 5762