Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unneeded error from printOption method
The code below doesn't really need the `error` as return type, so I remove it ```go func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) error { flags := cmd.NonInheritedFlags() flags.SetOutput(buf) if flags.HasAvailableFlags() { parentFlags.PrintDefaults() buf.WriteString("```\n\n") } return nil } ``` Merge spf13/cobra#1549
- Loading branch information