Skip to content
Myr

adds inheritance for SilenceErrors

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 f6e1a2d · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:command.go+2 added-1 removed
635 unmodified lines
636 }637638 err = cmd.execute(flags)639 if err != nil {640 // If root is silenced, all subcommands should have the same640 if !cmd.SilenceErrors {641 if !cmd.SilenceErrors && !c.SilenceErrors {642 if err == flag.ErrHelp {643 cmd.HelpFunc()(cmd, args)644 return nil645 }
525 unmodified lines