[Issue 15914] [REG 2.071] getopt doesn't accept anymore a character for a bool option

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 12 00:15:44 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15914

--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to b2.temp from comment #3)
> unittest
> {
>     bool opt;
>     string args;
>     getopt(args, config.passThrough 'a', &opt);
> }

This example never worked.

Even after you add the missing comma and delete the strange character at the
end.

Please post an actual complete program that can be copied and pasted into a .d
file which will compile with an older version but not a newer one.

--


More information about the Digitalmars-d-bugs mailing list