[Issue 15220] New: [REG2.065] std.getopt parses -o=value as "=value"
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Oct 17 17:20:39 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15220
          Issue ID: 15220
           Summary: [REG2.065] std.getopt parses -o=value as "=value"
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com
///////////////// test.d /////////////////
import std.getopt;
void main()
{
    string[] args = ["program", "-o=str"];
    string o;
    getopt(args, "o", &o);
    assert(o == "str");
}
//////////////////////////////////////////
Introduced in https://github.com/D-Programming-Language/phobos/pull/1779
This broke invoking catdoc.d from dlang.org's win32.mak.
--
    
    
More information about the Digitalmars-d-bugs
mailing list