← Back to index
|
Original Bugzilla link
Bug 7693 – Getopt Ignores Trailing Characters on Enums
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-12T10:46:00Z
Last change time
2014-03-24T10:36:47Z
Keywords
pull
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2012-03-12T10:46:32Z
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
Comment #1
by andrej.mitrovich — 2014-02-02T09:28:54Z
https://github.com/D-Programming-Language/phobos/pull/1902