[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:17:08 PDT 2016


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

--- Comment #7 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Figured it out. Complete example:

//////////////////// test.d ////////////////////
import std.getopt;

void main()
{
    bool opt;
    string[] args;
    getopt(args, config.passThrough, 'a', &opt);
}
////////////////////////////////////////////////

--


More information about the Digitalmars-d-bugs mailing list