https://issues.dlang.org/show_bug.cgi?id=13764
Issue ID: 13764
Summary: std.getopt: throw an UnknownOptionException rather
than Exception
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
It would be nice if std.getopt would throw something like an
UnknownOptionException rather than the very nondescript Exception it does now.
As it is now, it's hard to tell harmless "user errors" from serious internal
errors. Also, having to use string matching to find out which it is isn't so
nice.
--