diff --git a/src/cli-util.js b/src/cli-util.js index 101a47836..b418a9e4c 100644 --- a/src/cli-util.js +++ b/src/cli-util.js @@ -468,7 +468,7 @@ function normalizeArgv(rawArgv, options) { ? "without an argument" : `with value \`${rawValue}\``; consoleWarn( - `\`--${option.name}\` ${warningDescription} is deprecated. Automatically redirect to \`--${option.name}=${choice.redirect}\`.` + `\`--${option.name}\` ${warningDescription} is deprecated. Prettier now treats it as: \`--${option.name}=${choice.redirect}\`.` ); return choice.redirect; } diff --git a/tests_integration/__tests__/__snapshots__/arg-parsing.js.snap b/tests_integration/__tests__/__snapshots__/arg-parsing.js.snap index 8595921ec..d2c2e63c0 100644 --- a/tests_integration/__tests__/__snapshots__/arg-parsing.js.snap +++ b/tests_integration/__tests__/__snapshots__/arg-parsing.js.snap @@ -13,7 +13,7 @@ exports[`deprecated option values are warned 1`] = ` `; exports[`deprecated option values are warned 2`] = ` -"\`--trailing-comma\` without an argument is deprecated. Automatically redirect to \`--trailing-comma=es5\`. +"\`--trailing-comma\` without an argument is deprecated. Prettier now treats it as: \`--trailing-comma=es5\`. " `;