Skip to content

Commit ec17bff

Browse files
ldezSeigeC
authored andcommitted
fix: don't hide enable-all option (golangci#2338)
1 parent fbc6b6f commit ec17bff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/commands/run.go

-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is
200200
fs.StringSliceVarP(&lc.Enable, "enable", "E", nil, wh("Enable specific linter"))
201201
fs.StringSliceVarP(&lc.Disable, "disable", "D", nil, wh("Disable specific linter"))
202202
fs.BoolVar(&lc.EnableAll, "enable-all", false, wh("Enable all linters"))
203-
if err := fs.MarkHidden("enable-all"); err != nil {
204-
panic(err)
205-
}
206203

207204
fs.BoolVar(&lc.DisableAll, "disable-all", false, wh("Disable all linters"))
208205
fs.StringSliceVarP(&lc.Presets, "presets", "p", nil,

0 commit comments

Comments
 (0)