ZOptionSyntax: ((this, args) => readonly ZOptionInput[])

Type declaration

    • (this, args): readonly ZOptionInput[]
    • Supported command line syntax.

      The syntax is a function that converts raw command line arguments to option input suitable to be recognized by option readers.

      A syntax should be registered for options parser to respect it.

      Parameters

      • this: void
      • args: readonly [string, ...string[]]

        An array of command line arguments to process.

      Returns readonly ZOptionInput[]

      A read-only array of option inputs. May be empty if the command line argument has another syntax.

Generated using TypeDoc