Class HelpFormatterAbstract

Implements formatting of help messages for a set of option definitions.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

context: HelpContext

Methods

  • Formats the help message of an option group. Options are rendered in the same order as was declared in the option definitions.

    Parameters

    • Optional name: string

      The group name (defaults to the default group)

    Returns HelpMessage

    The help message, if the group exists; otherwise an empty message

  • Formats a help message with sections. Options are rendered in the same order as was declared in the option definitions.

    Parameters

    • sections: HelpSections

      The help sections

    • Optional progName: string

      The program name, if any

    Returns HelpMessage

    The formatted help message