Options
All
  • Public
  • Public/Protected
  • All
Menu

Error class for errors that are caused by bad cli options.

Hierarchy

  • Error
    • CLIOptionsError

Index

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Properties

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number
cliOption: string
cliValue?: string
message: string
name: string
stack?: string

Constructors

  • new CLIOptionsError(message: string, cliOption: string, cliValue?: string): CLIOptionsError
  • Constructor.

    Parameters

    • message: string

      Message for the error

    • cliOption: string

      The option that caused the error

    • Optional cliValue: string

      The value passed to the option

    Returns CLIOptionsError

Generated using TypeDoc