Function parseArgsWithHelp

  • Wrap util.parseArgs(), adding a "-h,--help" argument. It takes one or two arguments. The wrapping width defaults to your terminal width (via process.stdout.columns).

    Type Parameters

    Parameters

    • Optionalconfig: T

      An augmented version of the options passed to util.parseArgs(), with descriptions provided for options as well as the command as a whole.

    • Optionaloptions: LineWrapOptions

      How to do line wrapping?

    Returns ParsedResults<T>

    The parsed results.