cliverage/usage.go

39 lines
731 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).
2019-11-23 00:05:36 +00:00
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
2019-11-22 22:02:55 +00:00
%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"),
)
}