Skip to content

Commit

Permalink
just hide --deadline, don't deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
jirfag committed Oct 15, 2019
1 parent 27c8be0 commit 849044b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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)"))
Expand Down

0 comments on commit 849044b

Please sign in to comment.