Closed hamdiallam closed 4 years ago
When an error string is returned by a command, the help should not be printed by cobra. This makes the error string hard to find.
Add SilenceUsage = true to each command
SilenceUsage = true
This should placed in commands post argument validation. Still want to show usage if invalid arguments are provided
When an error string is returned by a command, the help should not be printed by cobra. This makes the error string hard to find.