OptionalhelpGet the argument description to show in the list of arguments.
Wrap a string at whitespace, preserving existing line breaks.
Wrapping is skipped if the width is less than minWidthToWrap.
Get the command usage to be displayed at the top of the built-in help.
Return display width of string, ignoring ANSI escape sequences. Used in padding and wrapping calculations.
Format the "item", which consists of a term and description. Pad the term and wrap the description, indenting the following lines.
So "TTT", 5, "DDD DDDD DD DDD" might be formatted for this.helpWidth=17 like so: TTT DDD DDDD DD DDD
Format a list of items, given a heading and an array of formatted items.
Detect manually wrapped and indented strings by checking for line break followed by whitespace.
Base style used in terms and usage for arguments.
Style for command name in usage string.
Base style used by descriptions.
Base style used in terms and usage for options.
Base style used in terms and usage for subcommands.
Style the titles. Called with 'Usage:', 'Options:', etc.
Usage:
output helpWidth, long lines are wrapped to fit