This release is versions behind 1.0.30 — the latest version of @std/cli.
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score94%•This package works with DenoIt is unknown whether this package works with Bun

License
•MIT
Downloads22,915/wk
•Publisheda month ago (1.0.29)
Tools for creating interactive command line tools
Functions
f
parseArgs<>(): Args<TArgs, TDoubleDash>
TArgs extends Values<>,
TBooleans,
TStrings,
TCollectable,
TNegatable,
TDefaults,
TAliases
TDoubleDash extends boolean | undefined = undefined,
TBooleans extends BooleanType = undefined,
TStrings extends StringType = undefined,
TCollectable extends Collectable = undefined,
TNegatable extends Negatable = undefined,
TDefaults extends Record<string, unknown> | undefined = undefined,
TAliases extends Aliases<TAliasArgNames, TAliasNames> | undefined = undefined,
TAliasArgNames extends string = string,
TAliasNames extends string = string
args: readonly string[],
options?: ParseOptions<>
TBooleans,
TStrings,
TCollectable,
TNegatable,
TDefaults,
TAliases,
TDoubleDash
Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.