https://issues.dlang.org/show_bug.cgi?id=2993
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from [email protected] --- The "standard" solution is to create a struct that encapsulates possible configurations of getopt, and pass that as an optional first parameter: module std.getopt; struct GetoptConfig { dchar optionChar = ... string endOfOptions = ...; ... // etc. } module myprogram; void main(string[] args) { GetoptConfig cfg; cfg.endOfOptions = ...; cfg.getopt(args, ...); } But this will break existing code, though. --
