[Issue 16684] std.getopt, problem with the automatic handling of "h"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 5 01:45:05 PST 2017
https://issues.dlang.org/show_bug.cgi?id=16684
--- Comment #1 from b2.temp at gmx.com ---
@Alexandru, I think that the best fix is to
1/ add a static assert() that prevents to specify "-h" or "--help" (for
example there's already "optionValidator " that does a few static checks)
2/ also update the documentation, saying that this switch is handled
automatically
The real problem I had before reporting was 1 hour lost trying to get why a
function pointer was never called. With a static check this will never happen
anymore to anyone.
--
More information about the Digitalmars-d-bugs
mailing list