http://d.puremagic.com/issues/show_bug.cgi?id=5610
Andrej Mitrovic <andrej.mitrov...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrov...@gmail.com Resolution| |INVALID --- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 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 works. Your multi-argument call will work if you prepend two dashes: import std.getopt; void main(string[] args) { bool test; getopt(args, "файл", &test); assert(test); } getopt_test.exe --файл So I'm closing this down, unless you find the bug persists. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------