Better error message that helps issue #49 .

This commit is contained in:
Tnze
2020-04-04 17:06:15 +08:00
parent 739761d434
commit 73727eccb9
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ func main() {
args := flag.Args()
var o string
o = "."// output dir
o = "." // output dir
if len(args) < 2 {
usage()
}
@ -44,7 +44,7 @@ func main() {
}
func usage() {
_, _ = fmt.Fprintf(os.Stderr, "usage: %s [-x] [-r] r.<X>.<Z>.mc{a,c}\n", flag.Arg(0))
_, _ = fmt.Fprintf(os.Stderr, "usage: %s [-x] [-r] r.<X>.<Z>.mc{a,c}\n", os.Args[0])
os.Exit(1)
}