Test case: --- unittest { import std.getopt; auto args = ["exe", "-h"]; int intFlag = 5; auto result = getopt(args, config.caseSensitive | config.bundling, "H", &intFlag); assert(intFlag == 5); assert(result.helpWanted); } --- It's normal with logically composable enums to be able to or them together. This doesn't work for std.getopt. If it compiles, it should do the right thing.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10357 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB