mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add "bench" to puffs' usage message.
This commit is contained in:
1 parent
3a46d6ce36
commit
a58bfc67f1
1 file changed
+15
-14
+15
-14
@@ -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"`
|
||||
|
||||
Reference in new issue
Block a user