Skip to content
Myr

Fix SilenceUsage and SilenceErrors in readme (#397)

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

You have to set them to true to silence the default output, not false.

authored by Nikola Kovacs · committed by Eric Paris · parent fcd0c5a · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
753 unmodified lines
754* PostRunE755* PersistentPostRunE756757If you would like to silence the default `error` and `usage` output in favor of your own, you can set `SilenceUsage`758and `SilenceErrors` to `false` on the command. A child command respects these flags if they are set on the parent758and `SilenceErrors` to `true` on the command. A child command respects these flags if they are set on the parent759command.760761**Example Usage using RunE:**762
147 unmodified lines