forked from mirror/cobra
Fix SilenceUsage and SilenceErrors in readme (#397)
You have to set them to true to silence the default output, not false.
This commit is contained in:
parent
fcd0c5a1df
commit
24bb44aac8
|
@ -755,7 +755,7 @@ providing a way to handle the errors in one location. The current list of functi
|
|||
* PersistentPostRunE
|
||||
|
||||
If you would like to silence the default `error` and `usage` output in favor of your own, you can set `SilenceUsage`
|
||||
and `SilenceErrors` to `false` on the command. A child command respects these flags if they are set on the parent
|
||||
and `SilenceErrors` to `true` on the command. A child command respects these flags if they are set on the parent
|
||||
command.
|
||||
|
||||
**Example Usage using RunE:**
|
||||
|
|
Loading…
Reference in New Issue