diff --git a/pkg/commands/run.go b/pkg/commands/run.go index 454e7410..4521a2e8 100644 --- a/pkg/commands/run.go +++ b/pkg/commands/run.go @@ -91,7 +91,9 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags")) fs.DurationVar(&rc.Timeout, "deadline", defaultTimeout, wh("Deadline for total work")) - hideFlag("deadline") + if err := fs.MarkHidden("deadline"); err != nil { + panic(err) + } fs.DurationVar(&rc.Timeout, "timeout", defaultTimeout, wh("Timeout for total work")) fs.BoolVar(&rc.AnalyzeTests, "tests", true, wh("Analyze tests (*_test.go)"))