www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13764] New: std.getopt: throw an UnknownOptionException


          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: nobody puremagic.com
          Reporter: danny.milo gmail.com

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

Nov 22 2014