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

Provide better errors messages in commandline
This commit is contained in:
Fabian Reinartz 2017-10-10 10:53:30 +02:00 committed by GitHub
commit ea879df6aa

View file

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