Skip to content

Commit df27992

Browse files
committed
just hide --deadline, don't deprecate
1 parent 98f60eb commit df27992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/commands/run.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is
9191
fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags"))
9292

9393
fs.DurationVar(&rc.Timeout, "deadline", defaultTimeout, wh("Deadline for total work"))
94-
hideFlag("deadline")
94+
if err := fs.MarkHidden("deadline"); err != nil {
95+
panic(err)
96+
}
9597
fs.DurationVar(&rc.Timeout, "timeout", defaultTimeout, wh("Timeout for total work"))
9698

9799
fs.BoolVar(&rc.AnalyzeTests, "tests", true, wh("Analyze tests (*_test.go)"))

0 commit comments

Comments
 (0)