import std.getopt;
void main(string[] args)
{
bool verbose;
auto helpInformation = std.getopt.getopt(args,
"verbose|loquacious|garrulous", "(description)", &verbose); // from the doc example
defaultGetoptPrinter("asdf", helpInformation.options);
}
The displayed help line for &verbose is:
-verbose --loquacious (description)
-verbose is wrong as it should have two dashes.
std.getopt.GetOptException@/usr/include/dlang/dmd/std/getopt.d(789): Unrecognized option -verbose
--garrulous is properly accepted but missing from the help page.
Comment #1 by robert.schadek — 2024-12-01T16:31:02Z