Not sure if it is a major one, considering that nobody has reported it yet but this the setter for a long option is called with the wrong part of the option, e.g for "--key=value" the setter is called with "key": --- void setValue(string value) { assert(value == value.stringof, value); } void main(string[] args) { args ~= "--key=value"; import std.getopt; getopt(args, "key", &setValue); } --- unless i handle the fix by myself, open a PR in for the stable branch please.
This is blocking some work of me as using a setter is the only* way to translate a string to a enum member that is a D keyword + underscore ;)
this behavior matches the documentation. you need to use two arguments to get the value.
Ok.