Packages

yargs

18.2.0 · 20 Sep 2026MIT241.1M / weekRepositoryHomepagenpmAtom feed

Your version

14.0.0

major30 Jul 2019Where it was published

14.2.3 is the newest release of 14.x.

In short

3 breaking2 new7 fixed1 internal

  • breaking

    We now only officially support yargs.$0 parameter and discourage direct access to yargs.parsed

  • breaking

    Previously to this fix methods like yargs.getOptions() contained the state of the last command to execute.

  • breaking

    Do not allow additional positionals in strict mode

Release note

Breaking changes

  • breaking

    We now only officially support yargs.$0 parameter and discourage direct access to yargs.parsed

  • breaking

    Previously to this fix methods like yargs.getOptions() contained the state of the last command to execute.

  • breaking

    Do not allow additional positionals in strict mode

Bug Fixes

  • Calling parse multiple times now appropriately maintains state

  • Prefer user supplied script name in usage

  • deps: use decamelize from npm instead of vendored copy

  • Do not allow additional positionals in strict mode

  • Properties accessed on singleton now reflect current state of instance

  • Tolerate null prototype for config objects with extends (#1376) (3d26d11), closes #1372

  • Yargs.parsed now populated before returning, when yargs.parse() called with no args (#1382) (e3981fd), closes #1382

Features

  • Adds support for multiple epilog messages

  • Allow completionCommand to be set via showCompletionScript