Skip to content

Commit

Permalink
Add --ignore-unknown-versions CLI option (browserslist#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane authored and zhouyu9527 committed Jul 4, 2022
1 parent 4b37b4e commit 51b6d95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli.js
Expand Up @@ -20,6 +20,7 @@ var USAGE =
' npx browserslist --env="environment name defined in config"\n' +
' npx browserslist --stats="path/to/browserlist/stats/file"\n' +
' npx browserslist --mobile-to-desktop\n' +
' npx browserslist --ignore-unknown-versions' +
' npx browserslist --update-db'

function isArg(arg) {
Expand Down Expand Up @@ -76,6 +77,8 @@ if (isArg('--help') || isArg('-h')) {
mode = 'json'
} else if (name === '--mobile-to-desktop') {
opts.mobileToDesktop = true
} else if (name === '--ignore-unknown-versions') {
opts.ignoreUnknownVersions = true
} else {
error('Unknown arguments ' + args[i] + '.\n\n' + USAGE)
}
Expand Down

0 comments on commit 51b6d95

Please sign in to comment.