Bug 17574 – Range violation in std.getopt:getopt AA parsing
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-29T21:11:09Z
Last change time
2018-01-05T13:29:41Z
Assigned to
No Owner
Creator
briancschott
Comments
Comment #0 by briancschott — 2017-06-29T21:11:09Z
I discovered this while trying to figure out how to include commas in argument values:
```
import std.getopt;
import std.stdio;
void main()
{
string[string] mapping;
arraySep = ",";
string[] args = [
"testProgram",
"-m",
"a=b,c=\"d,e,f\""
];
args.getopt("m", &mapping);
writeln(mapping);
}
```
Comment #1 by github-bugzilla — 2017-06-30T21:16:17Z