I need to simulate an application written in C / C++ which supports passing multiple argument values separated by space:
dmd -run sample.d --modelicalibs a b
``` d
import std;
void main(string[] args)
{
string[] modelicaLibs;
getopt(args, "modelicalibs", &modelicaLibs);
assert(modelicaLibs == ["a", "b"]);
}
```
As of today this is not supported by std.getopt. Could this be implemented?
References:
https://forum.dlang.org/post/[email protected]https://github.com/dlang/phobos/pull/7557
Comment #1 by robert.schadek — 2024-12-01T16:37:17Z