March 12, 2012 [Issue 7693] New: Getopt Ignores Trailing Characters on Enums | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7693 Summary: Getopt Ignores Trailing Characters on Enums Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2012-03-12 10:46:32 PDT --- import std.stdio, std.getopt; enum Foo { bar, baz } void main(string[] args) { Foo foo; getopt(args, "foo", &foo); writeln(foo); } $ dmd test.d $ ./test --foo barThatIDrinkAt bar -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation