From def7b9f034b16d414cc43fa6d248b5c8e099a32f Mon Sep 17 00:00:00 2001 From: Ivan Vasilev <875116+konclave@users.noreply.github.com> Date: Thu, 21 Sep 2023 22:52:55 +0200 Subject: [PATCH] Add update-browserslist-db mention on --update-db call and deprecation 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. --- cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli.js b/cli.js index c54aa987..57a34138 100755 --- a/cli.js +++ b/cli.js @@ -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)