getopt: How does arraySep work?
Paul Backus
snarwin at gmail.com
Tue Jul 14 14:00:31 UTC 2020
On Tuesday, 14 July 2020 at 13:40:44 UTC, Steven Schveighoffer
wrote:
>
> The whitespace separator doesn't get to your program. args is:
>
> ["sample", "--modelicalibs", "a", "b"]
>
> There is no separator in the parameter to --modelicalibs, it's
> just "a".
>
> What you need to do is:
>
> dmd -run sample.d --modilicalibs "a b"
>
> -Steve
I thought this was the solution too, but when I actually tried
it, I got `modelicaLibs == ["a b"]` and the assertion still
failed.
More information about the Digitalmars-d-learn
mailing list