(msg string)
| 83 | } |
| 84 | |
| 85 | func (c *Command) UsageError(msg string) error { |
| 86 | nl := "" |
| 87 | if msg != "" { |
| 88 | nl = "\n" |
| 89 | } |
| 90 | return fmt.Errorf("%s%s%s", msg, nl, c.Synopsis()) |
| 91 | } |
| 92 | |
| 93 | func (c *Command) Synopsis() string { |
| 94 | lines := []string{} |
no test coverage detected