Skip to content

Commit

Permalink
Add update-browserslist-db mention on --update-db call and deprecatio…
Browse files Browse the repository at this point in the history
…n hint. (#791)

* add --update-db key to the usage hint

The --update-db key is missing in the usage hint printed to the terminal when CLI is called with the --help key.

* add --update-db depracation hint

And rollback the --update-db print in the help hint.
  • Loading branch information
konclave committed Sep 21, 2023
1 parent f59aa67 commit def7b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.js
Expand Up @@ -38,6 +38,8 @@ if (isArg('--help') || isArg('-h')) {
} else if (isArg('--version') || isArg('-v')) {
process.stdout.write('browserslist ' + pkg.version + '\n')
} else if (isArg('--update-db')) {
process.stdout.write('The --update-db command is deprecated. Please use npx update-browserslist-db@latest instead.\n')
process.stdout.write('Browserslist DB update will still be made.\n')
/* c8 ignore next 3 */
updateDb(function (str) {
process.stdout.write(str)
Expand Down

0 comments on commit def7b9f

Please sign in to comment.