defaultGetoptPrinter

This function prints the passed Option and text in an aligned manner.

The passed text will be printed first, followed by a newline. Than the short and long version of every option will be printed. The short and long version will be aligned to the longest option of every Option passed. If a help message is present it will be printed after the long version of the Option.

foreach(it; opt)
{
    writefln("%*s %*s %s", lengthOfLongestShortOption, it.optShort,
        lengthOfLongestLongOption, it.optLong, it.help);
}
void
defaultGetoptPrinter
(
string text
,)

Parameters

text string

The text to printed at the beginning of the help output.

opt Option[]

The Option extracted from the getopt parameter.

Meta