Packages

yargs

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

Your version

15.2.0

1 Mar 2020Where it was published

15.4.1 is the newest release of 15.x.

In short

1 breaking7 new6 fixed

  • breaking

    deps: yargs-parser@17.0.0 no longer implicitly creates arrays out of boolean

Release note

Breaking changes

  • breaking

    deps: yargs-parser@17.0.0 no longer implicitly creates arrays out of boolean
    arguments when duplicates are provided

Features

  • completion: takes negated flags into account when boolean-negation is set

  • deps: pull in yargs-parser@17.0.0

  • deprecateOption

  • Display appropriate $0 for electron apps

  • Introduces strictCommands() subset of strict mode

  • deps: yargs-parser with 'greedy-array' configuration

Bug Fixes

  • Help always displayed for the first command parsed having an async handler

  • deps: fix enumeration for normalized path arguments

  • locales: only translate default option group name

  • locales: remove extra space in French for 'default'

  • translations: add French translation for unknown command

  • translations: fix pluralization in error messages.

  • yargs: correct support of bundled electron apps