printHelp

Prints the getopt "helpWanted" help table to screen.

private @safe
void
printHelp
(
GetoptResult results
)

Parameters

results GetoptResult

Results from a getopt call.

Examples

auto results = args.getopt(
    "n|nickname",   "Bot nickname", &nickname,
    "s|server",     "Server",       &server,
    // ...
);

if (results.helpWanted)
{
    printHelp(results);
}