mirror of
https://github.com/spf13/cobra
synced 2024-11-04 21:07:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue