mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
Remove special listing of config.file in usage
The -config.file parameter isn't required or any more special than the other flags. In order to avoid confusion, this change removes the special mention again. Instead, the error message if a config file couldn't be loaded is changed to mention the flag name.
This commit is contained in:
parent
35a44509fb
commit
7d71d354fd
4
main.go
4
main.go
|
@ -92,7 +92,7 @@ type prometheus struct {
|
|||
func NewPrometheus() *prometheus {
|
||||
conf, err := config.LoadFromFile(*configFile)
|
||||
if err != nil {
|
||||
glog.Errorf("Error loading configuration from %s: %v\n", *configFile, err)
|
||||
glog.Errorf("Couldn't load configuration (-config.file=%s): %v\n", *configFile, err)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,7 @@ func usage() {
|
|||
}
|
||||
sort.Sort(groupsOrdered)
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s [options ...] -config.file=<config_file>:\n\n", os.Args[0])
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s [options ...]:\n\n", os.Args[0])
|
||||
|
||||
const (
|
||||
maxLineLength = 80
|
||||
|
|
Loading…
Reference in a new issue