PrintHelp writes the canonical human-readable command list. Used by --help.
(out io.Writer)
| 127 | |
| 128 | // PrintHelp writes the canonical human-readable command list. Used by --help. |
| 129 | func PrintHelp(out io.Writer) { |
| 130 | w := tabwriter.NewWriter(out, 0, 0, 2, ' ', 0) |
| 131 | for _, c := range commands { |
| 132 | fmt.Fprintf(w, " %s\t%s\n", c.name, c.description) |
| 133 | } |
| 134 | w.Flush() |
| 135 | } |
| 136 | |
| 137 | // --- handlers --------------------------------------------------------------- |
| 138 |
no outgoing calls