April 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17327

          Issue ID: 17327
           Summary: std.getopt: repeated options unrecognised
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody@puremagic.com
          Reporter: novalazy+dlang@gmail.com

getopt reports that a valid option is unrecognised if it is used multiple times. e.g.

getopt(args, "dry-run|n", &dryrun);

An exception is throw for both "prog -n -n" and "prog --dry-run -n".

--