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.
Comment #1 by robert.schadek — 2024-12-01T16:34:27Z