Skip to content
Myr

[silence-errors]: adds comments around code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Austin Riendeau · committed by Austin Riendeau · parent 4729b37 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:command.go+4 added-1 removed
637 unmodified lines
638 }639640 err = cmd.execute(flags)641 if err != nil {642 // If root is silenced, all subcommands should have the same642 // If root command has SilentUsage flagged,643 // all subcommands should respect it644 if !cmd.SilenceUsage && !c.SilenceUsage {645 c.Println(cmd.UsageString())646 }647 // If root command has SilentErrors flagged,648 // all subcommands should respect it649 if !cmd.SilenceErrors && !c.SilenceErrors {650 if err == flag.ErrHelp {651 cmd.HelpFunc()(cmd, args)652 return nil
525 unmodified lines