Browse Source

Merge pull request #3265 from mathieui/better-cmdline-errors

Provide better errors messages in commandline
pull/3280/head
Fabian Reinartz 7 years ago committed by GitHub
parent
commit
ea879df6aa
  1. 1
      cmd/prometheus/main.go

1
cmd/prometheus/main.go

@ -175,6 +175,7 @@ func main() {
_, err := a.Parse(os.Args[1:])
if err != nil {
fmt.Fprintln(os.Stderr, errors.Wrapf(err, "Error parsing commandline arguments"))
a.Usage(os.Args[1:])
os.Exit(2)
}

Loading…
Cancel
Save