The divisor used to determine how many characters to use for the arg's name(s)
The information about the arg.
The string used to split an arg's name(s) from its description.
Whether to add the dash prefix to the args' name(s). e.g. "--option" vs "option"
All registered args.
Generates a string to display inside of a help text section.
auto content = new HelpSectionArgInfoContent( [ HelpSectionArgInfoContent.ArgInfo(["v", "verbose"], "Display detailed information about what the program is doing."), HelpSectionArgInfoContent.ArgInfo(["f", "file"], "The input file."), HelpSectionArgInfoContent.ArgInfo(["super","longer","names"], "Some unusuable command with long names and a long description.") ], AutoAddArgDashes.yes ); auto options = HelpSectionOptions( " ", 80 ); assert(content.getContent(options) == " -v,--verbose - Display detailed information about what the program is\n" ~" doing.\n" ~" -f,--file - The input file.\n" ~" --super,--longer, - Some unusuable command with long names and a long desc\n" ~" --names ription.", "\n"~content.getContent(options) );
A content class for displaying information about a command line argument.
Notes: Please see this class' unittest to see an example of it's output.