hclfmt: Have this tool call itself by the correct name

Its usage output was still reporting "zclfmt", which is a remnant of the
experimental project that HCL was forked from.
This commit is contained in:
Martin Atkins 2018-01-27 10:31:26 -08:00
parent 22bc7a98cb
commit a59f60c1db
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ func processFiles() error {
case dir.IsDir():
// This tool can't walk a whole directory because it doesn't
// know what file naming schemes will be used by different
// zcl-embedding applications, so it'll leave that sort of
// HCL-embedding applications, so it'll leave that sort of
// functionality for apps themselves to implement.
return fmt.Errorf("can't format directory %s", path)
default:
@ -142,7 +142,7 @@ func processFile(fn string, in *os.File) error {
}
func usage() {
fmt.Fprintf(os.Stderr, "usage: zclfmt [flags] [path ...]\n")
fmt.Fprintf(os.Stderr, "usage: hclfmt [flags] [path ...]\n")
flag.PrintDefaults()
os.Exit(2)
}