www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14525] New: Cannot access help information from getopt if a

https://issues.dlang.org/show_bug.cgi?id=14525

          Issue ID: 14525
           Summary: Cannot access help information from getopt if a
                    required parameter is not given
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com

http://forum.dlang.org/thread/tjraqgbvwsqgynmzjava forum.dlang.org

The problem is that getopt needs to a) throw an exception and b) return a valid
GetoptResult so that the program can print help information when the exception
is thrown. Obviously, this isn't possible, so we need to find some other
solution.

Maybe including the options array in the GetOptException?

--
Apr 29 2015