be more helpful on no-argument invocation

This commit is contained in:
Alan Shreve 2013-11-08 21:31:55 +02:00
parent 8e87ecda2a
commit bd1a47dfea

View File

@ -54,7 +54,8 @@ func parseArgs() *bindata.Config {
// Make sure we have in/output paths.
if flag.NArg() == 0 {
fmt.Fprintf(os.Stderr, "Missing input path.\n")
fmt.Fprintf(os.Stderr, "Missing <input dir>\n\n")
flag.Usage()
os.Exit(1)
}