doiuse icon indicating copy to clipboard operation
doiuse copied to clipboard

Crash in v6.0.2 due to Yargs version

Open strokirk opened this issue 1 year ago • 0 comments

Something with the yargs upgrade in v6.0.2 seem to cause a crash on a bare invocation - yargs.showHelp is not a function.

❯ npx [email protected]
file:///Users/danstrokirk/.npm/_npx/82246172bbe2c6eb/node_modules/doiuse/bin/cli.js:120
  yargs.showHelp();
        ^

TypeError: yargs.showHelp is not a function
    at file:///Users/danstrokirk/.npm/_npx/82246172bbe2c6eb/node_modules/doiuse/bin/cli.js:120:9

Node.js v20.17.0
❯ npx [email protected]
Lint your CSS for browser support.

Options:
      --version    Show version number                                 [boolean]
  -b, --browsers   Autoprefixer-like browser criteria.  [string] [default: null]
  -i, --ignore     List of features to ignore.            [string] [default: ""]
  -l, --list-only  Just show the browsers and features that would be tested byth
                   e specified browser criteria, without actually processing any
                    CSS.
  -c, --config     Provide options through config file
  -v, --verbose    Verbose output. Multiple levels available.           [string]
  -j, --json       Output JSON instead of string linter-like messages. [boolean]
  -h, --help       Show help message.                                  [boolean]

Examples:
  cat FILE | doiuse -b "ios >= 6"
  doiuse --browsers "ie >= 9, > 1%, last 3 versions" [FILE] [FILE] ...
  doiuse -b "ie >= 8" -b "> 1%" -b "last 3 versions" [FILE] [FILE] ...

strokirk avatar Nov 15 '24 08:11 strokirk