Class Parser

command parser

Hierarchy

  • Parser

Constructors

Properties

Methods

Constructors

Properties

root: Command

Methods

  • Parses command line arguments and invokes a handler callback for a matching command or its subcommands

    Throws

    FlagsException

    Example

    deno

    new Parser(root).parse(Deno.args)
    

    Example

    nodejs

    new Parser(root).parse(process.argv.splice(2))
    

    Parameters

    • args: string[]

      command line parameters

    • Optional opts: ParserOptions

      some optional behavior definitions

    Returns void

Generated using TypeDoc