Skip to content

Commit 0049f11

Browse files
committed
feat: deprecate print-resources-usage flag
1 parent 6cd10a9 commit 0049f11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/commands/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ func setupConfigFileFlagSet(fs *pflag.FlagSet, cfg *config.LoaderOptions) {
584584
func setupRunPersistentFlags(fs *pflag.FlagSet, opts *runOptions) {
585585
fs.BoolVar(&opts.PrintResourcesUsage, "print-resources-usage", false,
586586
color.GreenString("Print avg and max memory usage of golangci-lint and total time"))
587+
_ = fs.MarkDeprecated("print-resources-usage", "use --verbose instead")
587588

588589
fs.StringVar(&opts.CPUProfilePath, "cpu-profile-path", "", color.GreenString("Path to CPU profile output file"))
589590
fs.StringVar(&opts.MemProfilePath, "mem-profile-path", "", color.GreenString("Path to memory profile output file"))

0 commit comments

Comments
 (0)