Usage print base usage help info.
()
| 95 | |
| 96 | // Usage print base usage help info. |
| 97 | func (c *Command) Usage() { |
| 98 | fmt.Fprintf(os.Stdout, "usage: %s\n", c.UsageLine) |
| 99 | fmt.Fprintf(os.Stdout, "Run 'cql help %s' for details.\n", c.LongName()) |
| 100 | os.Exit(2) |
| 101 | } |
| 102 | |
| 103 | // Runnable reports whether the command can be run; otherwise |
| 104 | // it is a documentation pseudo-command such as importpath. |