Skip to content

Commit

Permalink
fix typos (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
namusyaka committed Dec 4, 2020
1 parent 39b5a91 commit 7df62f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Expand Up @@ -964,13 +964,13 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
return cmd, nil
}

// If root command has SilentErrors flagged,
// If root command has SilenceErrors flagged,
// all subcommands should respect it
if !cmd.SilenceErrors && !c.SilenceErrors {
c.PrintErrln("Error:", err.Error())
}

// If root command has SilentUsage flagged,
// If root command has SilenceUsage flagged,
// all subcommands should respect it
if !cmd.SilenceUsage && !c.SilenceUsage {
c.Println(cmd.UsageString())
Expand Down

0 comments on commit 7df62f7

Please sign in to comment.