Skip to content

Commit 7df62f7

Browse files
authored
fix typos (spf13#1274)
1 parent 39b5a91 commit 7df62f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,13 +964,13 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
964964
return cmd, nil
965965
}
966966

967-
// If root command has SilentErrors flagged,
967+
// If root command has SilenceErrors flagged,
968968
// all subcommands should respect it
969969
if !cmd.SilenceErrors && !c.SilenceErrors {
970970
c.PrintErrln("Error:", err.Error())
971971
}
972972

973-
// If root command has SilentUsage flagged,
973+
// If root command has SilenceUsage flagged,
974974
// all subcommands should respect it
975975
if !cmd.SilenceUsage && !c.SilenceUsage {
976976
c.Println(cmd.UsageString())

0 commit comments

Comments
 (0)