Silence usage on commands that apply

This commit is contained in:
bwilliams committed 2026-10-09 09:29:53 +01:00
1 parent 6436253629
commit da81e6ccd9
3 files changed
+11 -2

No files matched your search

+4
View File
@@ -44,6 +44,10 @@ func (o *Options) Bind(cmd *cobra.Command) {
func (o *Options) RunSetup(
cmd *cobra.Command, loadConfig bool, terminalLog bool,
) (*config.JobSearchConfig, error) {
// Flags and arguments are valid from here on, so errors are runtime
// failures: report them without cobra's usage text.
cmd.SilenceUsage = true
// Check for debug level or quiet supression via args
conf := &config.JobSearchConfig{
Logging: config.JobSearchConfigLogging{},