MCPcopy
hub / github.com/google/gvisor / printUsage

Function printUsage

tools/gpu/main.go:68–77  ·  view source on GitHub ↗

printUsage prints the top level usage string.

()

Source from the content-addressed store, hash-verified

66
67// printUsage prints the top level usage string.
68func printUsage() {
69 usage := `Usage: main <command> <flags> ...
70
71Available commands:`
72 fmt.Println(usage)
73 for _, f := range []*flag.FlagSet{installCmd, checksumCmd, validateChecksumCmd, listCmd} {
74 fmt.Printf("%s %s\n", f.Name(), commandSet[f])
75 f.PrintDefaults()
76 }
77}
78
79func main() {
80 ctx := context.Background()

Callers 1

mainFunction · 0.70

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…