INNER CODE UNIT · Go
func
grafana-cold-storage/phlare · cmd/phlare/main.go:28
func (mf *mainFlags) Clone() flagext.Registerer {
return func(mf mainFlags) *mainFlags {
return &mf
}(*mf)
}
func (mf *mainFlags) PhlareConfig() *phlare.Config {
return &mf.Config
}
func (mf *mainFlags) RegisterFlags(fs *flag.FlagSet) {
mf.Config.RegisterFlags(fs)
fs.BoolVar(&mf.PrintVersion, "version", false, "Show the version of phlare and exit")
fs.BoolVar(&mf.PrintModules, "modules", false, "List available modules that can be used as target and exit.")
fs.BoolVar(&mf.PrintHelp, "h", false, "Print basic help.")
fs.BoolVar(&mf.PrintHelp, "help", false, "Print basic help.")
fs.BoolVar(&mf.PrintHelpAll, "help-all", false, "Print help, also including advanced and experimental parameters.")
}