cliverage/usage.go

39 lines
731 B
Go

package main
import "fmt"
func usage() {
fmt.Printf(`
%s
cliverage - print human-readable golang code coverage
%s
%s -d codepath -c coverfile [-f filepath]
%s
-d codepath
Path to where lives your code
-c coverfile
Path to the coverage file generated by "go test -coverprofile".
-f filepath
Optional path to a file (relative to %s).
examples:
"main.go" - targets the file main.go
"subdir/main.go" - targets the file subdir/main.go
"subdir" - target every subdir file
"." - target every file inside codepath
%s
Adrien Marquès (aka. xdrm-brackets)
`,
bold("NAME"),
bold("SYNOPSIS"),
bold("cliverage"),
bold("OPTIONS"),
bold("codepath"),
bold("AUTHORS"),
)
}