diff --git a/collector/textfile.go b/collector/textfile.go index 47d177163..6585c7291 100644 --- a/collector/textfile.go +++ b/collector/textfile.go @@ -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.",