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: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@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: -------

Reply via email to