Bug 14525 – Cannot access help information from getopt if a required parameter is not given

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-29T22:36:39Z
Last change time
2024-12-01T16:24:27Z
Assigned to
No Owner
Creator
briancschott
Moved to GitHub: phobos#10128 →

Comments

Comment #0 by briancschott — 2015-04-29T22:36:39Z
http://forum.dlang.org/thread/[email protected] 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?
Comment #1 by john.loughran.colvin — 2016-01-31T14:11:59Z
*** Issue 14921 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-01T16:24:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10128 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB