diff --git a/app/vmalert/datasource/init.go b/app/vmalert/datasource/init.go index 62e7848eb..6658e3d28 100644 --- a/app/vmalert/datasource/init.go +++ b/app/vmalert/datasource/init.go @@ -31,7 +31,6 @@ var ( // Init creates a Querier from provided flag values. func Init() (Querier, error) { if *addr == "" { - flag.PrintDefaults() return nil, fmt.Errorf("datasource.url is empty") } tr, err := utils.Transport(*addr, *tlsCertFile, *tlsKeyFile, *tlsCAFile, *tlsServerName, *tlsInsecureSkipVerify) diff --git a/app/vmalert/notifier/init.go b/app/vmalert/notifier/init.go index e1f100a51..35aaae5ab 100644 --- a/app/vmalert/notifier/init.go +++ b/app/vmalert/notifier/init.go @@ -26,7 +26,6 @@ var ( // Init creates a Notifier object based on provided flags. func Init(gen AlertURLGenerator) ([]Notifier, error) { if len(*addrs) == 0 { - flag.PrintDefaults() return nil, fmt.Errorf("at least one `-notifier.url` must be set") }