Cobra package update broke something

This commit is contained in:
Patrick O'brien 2016-07-17 13:46:12 +10:00
parent 20ce662a67
commit 7545343e0d

View file

@ -68,7 +68,7 @@ func main() {
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {
if e, ok := err.(commandFailure); ok { if e, ok := err.(commandFailure); ok {
rootCmd.Help() rootCmd.HelpFunc()
fmt.Printf("\n%s\n", string(e)) fmt.Printf("\n%s\n", string(e))
return return
} }