MCPcopy
hub / github.com/tinygo-org/tinygo / usage

Function usage

main.go:1561–1575  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

1559)
1560
1561func usage(command string) {
1562 val, ok := commandHelp[command]
1563 if !ok {
1564 fmt.Fprintf(os.Stderr, usageDefault, goenv.Version(), os.Args[0], goenv.Get("GOCACHE"))
1565 if flag.Parsed() {
1566 fmt.Fprintln(os.Stderr, "\nflags:")
1567 flag.PrintDefaults()
1568 }
1569
1570 fmt.Fprintln(os.Stderr, "\nfor more details, see https://tinygo.org/docs/reference/usage/")
1571 } else {
1572 fmt.Fprintln(os.Stderr, val)
1573 }
1574
1575}
1576
1577// Print diagnostics very similar to the -json flag in Go.
1578func printBuildOutput(err error, jsonDiagnostics bool) {

Callers 1

mainFunction · 0.85

Calls 2

VersionFunction · 0.92
GetFunction · 0.92

Tested by

no test coverage detected