Add "bench" to puffs' usage message.

This commit is contained in:
Nigel Tao committed 2017-07-01 11:26:55 +10:00
1 parent 3a46d6ce36
commit a58bfc67f1
1 file changed
+15 -14
+15 -14
View File
@@ -24,6 +24,21 @@ var commands = []struct {
{"test", doTest},
}
func usage() {
fmt.Fprintf(os.Stderr, `Puffs is a tool for managing Puffs source code.
Usage:
puffs command [arguments]
The commands are:
bench benchmark packages
gen generate code for packages and dependencies
test test packages
`)
}
func main() {
if err := main1(); err != nil {
os.Stderr.WriteString(err.Error() + "\n")
@@ -89,20 +104,6 @@ func listDir(puffsRoot string, dirname string, returnSubdirs bool) (filenames []
return filenames, dirnames, nil
}
func usage() {
fmt.Fprintf(os.Stderr, `Puffs is a tool for managing Puffs source code.
Usage:
puffs command [arguments]
The commands are:
gen generate code for packages and dependencies
test test packages
`)
}
const (
langsDefault = "c"
langsUsage = `comma-separated list of target languages (file extensions), e.g. "c,go,rs"`