Skip to content

Commit 3f31d04

Browse files
committed
fix: formatters help text and CLI flags
The flags were the ones of the linters commands. The help text was displaying the linters help text. And the completions was allowing to use --disable and --enable-only that are not supported by the formatters commands.
1 parent e7c4589 commit 3f31d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/formatters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func newFormattersCommand(logger logutils.Log) *formattersCommand {
5959
fs.SortFlags = false // sort them as they are defined here
6060

6161
setupConfigFileFlagSet(fs, &c.opts.LoaderOptions)
62-
setupLintersFlagSet(c.viper, fs)
62+
setupFormattersFlagSet(c.viper, fs)
6363

6464
fs.BoolVar(&c.opts.JSON, "json", false, color.GreenString("Display as JSON"))
6565

0 commit comments

Comments
 (0)