This commit is contained in:
Endri Gjiri 2018-03-24 13:33:14 +00:00 committed by GitHub
commit 702a715c7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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