Skip to content

Commit 849044b

Browse files
committed
just hide --deadline, don't deprecate
1 parent 27c8be0 commit 849044b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/commands/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is
8989
fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags"))
9090

9191
fs.DurationVar(&rc.Timeout, "deadline", defaultTimeout, wh("Deadline for total work"))
92-
hideFlag("deadline")
92+
if err := fs.MarkHidden("deadline"); err != nil {
93+
panic(err)
94+
}
9395
fs.DurationVar(&rc.Timeout, "timeout", defaultTimeout, wh("Timeout for total work"))
9496

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

0 commit comments

Comments
 (0)