Documentation
    Preparing search index...

    Parses the command line arguments. The flags are parsed using yargs-parser

    const parser = new Parser({ flagsParserOptions, argumentsParserOptions })
    const parsed = parser.parse(['--verbose', 'create', 'User'])
    console.log(parsed.args) // ['User']
    console.log(parsed.flags) // { verbose: true }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parse command-line arguments into structured format

      Parameters

      • argv: string | string[]

        Command line arguments as string or array

      Returns ParsedOutput

      const parsed = parser.parse(['--verbose', 'create', 'User'])
      // Returns: { args: ['User'], flags: { verbose: true }, ... }