Update error output to use Help() instead of UsageString()

This commit is contained in:
Endri Gjiri 2018-03-24 09:17:00 -04:00
parent a1f051bc3e
commit 3614e10541

View file

@ -861,7 +861,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
// If root command has SilentUsage flagged,
// all subcommands should respect it
if !cmd.SilenceUsage && !c.SilenceUsage {
c.Println(cmd.UsageString())
cmd.Help()
}
}
return cmd, err