Andrej Mitrovic <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|                            |INVALID

--- Comment #1 from Andrej Mitrovic <> 2011-05-24 
19:24:35 PDT ---
I'm testing this on v2.053. I suggest you upgrade to this version, it will give
you nice stacktraces and a more useful error message.

getopt only accepts a single argument with a single dash. You could pass a
single unicode character if you want to e.g.:
getopt_test.exe -ф

And you'll get:
getopt.d(411): Unrecognized option -ф

which just means you have to write the code to handle such a case, but it

Your multi-argument call will work if you prepend two dashes:

import std.getopt;
void main(string[] args)
    bool test;
    getopt(args, "файл", &test);

getopt_test.exe --файл

So I'm closing this down, unless you find the bug persists.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to