From a8887d565597fb898c0db74c739c2dbb04d2ca24 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Tue, 2 Nov 2021 14:02:23 +0100 Subject: [PATCH] fix: don't hide enable-all option (#2338) --- pkg/commands/run.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/commands/run.go b/pkg/commands/run.go index 11ae7d7e..1fb8c7b5 100644 --- a/pkg/commands/run.go +++ b/pkg/commands/run.go @@ -200,9 +200,6 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is fs.StringSliceVarP(&lc.Enable, "enable", "E", nil, wh("Enable specific linter")) fs.StringSliceVarP(&lc.Disable, "disable", "D", nil, wh("Disable specific linter")) fs.BoolVar(&lc.EnableAll, "enable-all", false, wh("Enable all linters")) - if err := fs.MarkHidden("enable-all"); err != nil { - panic(err) - } fs.BoolVar(&lc.DisableAll, "disable-all", false, wh("Disable all linters")) fs.StringSliceVarP(&lc.Presets, "presets", "p", nil,