[Issue 14525] New: Cannot access help information from getopt if a required parameter is not given

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 29 15:36:39 PDT 2015


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 at puremagic.com
          Reporter: briancschott at 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?

--


More information about the Digitalmars-d-bugs mailing list