Skip to content

Commit

Permalink
fix: .hidden() for deprecated directory flag
Browse files Browse the repository at this point in the history
Signed-off-by: Dinifarb <[email protected]>
  • Loading branch information
DiniFarb committed Aug 21, 2023
1 parent 9473265 commit 7530e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/textfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func newTextFileCollectorFlags(app *kingpin.Application) {
textFileDirectory = app.Flag(
FlagTextFileDirectory,
"DEPRECATED: Use --collector.textfile.directories",
).Default("").String()
).Default("").Hidden().String()
textFileDirectories = app.Flag(
FlagTextFileDirectories,
"Directory or Directories to read text files with metrics from.",
Expand Down

0 comments on commit 7530e7b

Please sign in to comment.