cliverage/usage.go

34 lines
515 B
Go
Raw Normal View History

2019-11-22 22:02:55 +00:00
package main
import "fmt"
func usage() {
fmt.Printf(`
%s
cliverage - print human-readable golang code coverage
%s
2019-11-22 22:05:27 +00:00
%s -d codepath -c coverfile [-f filepath]
2019-11-22 22:02:55 +00:00
%s
2019-11-22 22:05:27 +00:00
-d codepath
2019-11-22 22:02:55 +00:00
Path to where lives your code
2019-11-22 22:05:27 +00:00
-c coverfile
2019-11-22 22:02:55 +00:00
Path to the coverage file generated by "go test -coverprofile".
2019-11-22 22:05:27 +00:00
-f filepath
2019-11-22 22:02:55 +00:00
Optional path to a file (relative to %s).
%s
Adrien Marquès (aka. xdrm-brackets)
`,
bold("NAME"),
bold("SYNOPSIS"),
bold("cliverage"),
2019-11-22 22:05:27 +00:00
bold("OPTIONS"),
2019-11-22 22:02:55 +00:00
bold("codepath"),
bold("AUTHORS"),
)
}