func (t *templater) usageLine(c *cobra.Command) string { usage := c.UseLine() suffix := "[options]" if c.HasFlags() && !strings.Contains(usage, suffix) { usage += " " + suffix } return usage }