[Issue 17327] New: std.getopt: repeated options unrecognised
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Apr 14 20:37:02 PDT 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 at puremagic.com
Reporter: novalazy+dlang at 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".
--
More information about the Digitalmars-d-bugs
mailing list