Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in v6.0.2 due to Yargs version #198

Open
strokirk opened this issue Nov 15, 2024 · 0 comments
Open

Crash in v6.0.2 due to Yargs version #198

strokirk opened this issue Nov 15, 2024 · 0 comments

Comments

@strokirk
Copy link

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] ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant