diff --git a/.changeset/sixty-masks-sip.md b/.changeset/sixty-masks-sip.md new file mode 100644 index 0000000000..81935626a4 --- /dev/null +++ b/.changeset/sixty-masks-sip.md @@ -0,0 +1,5 @@ +--- +"stylelint": patch +--- + +Fixed' `--print-config` description in CLI help diff --git a/docs/user-guide/cli.md b/docs/user-guide/cli.md index 7cd2505c75..f243230d21 100644 --- a/docs/user-guide/cli.md +++ b/docs/user-guide/cli.md @@ -94,7 +94,7 @@ Path of file to write a report. Stylelint outputs the report to the specified `f ### `--print-config` -Print the configuration for the given path. Stylelint outputs the configuration used for the file passed. +Print the configuration for the given input path. ### `--quiet, -q` diff --git a/lib/__tests__/__snapshots__/cli.test.js.snap b/lib/__tests__/__snapshots__/cli.test.js.snap index 3f7fdf2bef..1adb789f39 100644 --- a/lib/__tests__/__snapshots__/cli.test.js.snap +++ b/lib/__tests__/__snapshots__/cli.test.js.snap @@ -35,9 +35,9 @@ exports[`CLI --help 1`] = ` "plugins", and "customSyntax" are *relative to*. Only necessary if these values are relative paths. - --print-config + --print-config - Print the configuration for the given path. + Print the configuration for the given input file path. Globs are unsupported. --ignore-path, -i diff --git a/lib/cli.js b/lib/cli.js index 222a20d17d..e35343f23d 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -126,9 +126,9 @@ const meowOptions = { "plugins", and "customSyntax" are *relative to*. Only necessary if these values are relative paths. - --print-config + --print-config - Print the configuration for the given path. + Print the configuration for the given input file path. Globs are unsupported. --ignore-path, -i