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
Comment #2 by github-bugzilla — 2013-12-18T00:37:01Z