[Issue 10674] getopt does not work for enum type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 19 08:01:30 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10674
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |hsteoh at quickfur.ath.cx
Resolution| |INVALID
--- Comment #1 from hsteoh at quickfur.ath.cx 2013-07-19 08:01:30 PDT ---
The problem is that args[0] is expected to be the program name, so std.getopt
does not try to parse it as an option. If you replace the declaration of args
with this:
auto args = ["program.exe", "--color=yes"];
then the code works as expected.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list