www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16048] New: std.getopt: duplicated (short) options are not

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

          Issue ID: 16048
           Summary: std.getopt: duplicated (short) options are not
                    detected
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

If you have multiple config options such as:

-----
getopt(args, "arg1|a", &arg1, "arg2|a", &arg2);
-----

Getopt won't complain about this, and will parse all 'a' options into arg1.

--
May 19 2016