Is it a bug in std.getopt.config.stopOnFirstNonOption?
Ali Çehreli
acehreli at yahoo.com
Sat Aug 17 01:31:41 UTC 2019
On 08/16/2019 02:07 PM, Andrey Zherikov wrote:
> But:
> - if I change line (1) to `auto args = ["app", "--foo", "foo", "--bar",
> "bar"];` then this code works.
> - if I remove line (2) then this code works.
Yes, it's a bug.
Another workaround--which I haven't tested to see whether produces the
behavior you expect--is to move std.getopt.config.stopOnFirstNonOption
to a later position the argument list, like after &foo.
Ali
More information about the Digitalmars-d-learn
mailing list