From a82b6223aa1e1a4638f467f481fb67b6bb6cac7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Fri, 31 Jul 2026 15:53:57 +0200 Subject: [PATCH] Remove the SilenceUsage flag again It will be obsolete once #3140 has been merged --- services/search/pkg/command/index.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/search/pkg/command/index.go b/services/search/pkg/command/index.go index 30ea29cba8..ad1a71b0fe 100644 --- a/services/search/pkg/command/index.go +++ b/services/search/pkg/command/index.go @@ -28,9 +28,6 @@ func Index(cfg *config.Config) *cobra.Command { Use: "index", Short: "index the files for one one more users", Aliases: []string{"i"}, - // Don't print the usage on runtime errors (e.g. a cancelled request); - // usage is only helpful for flag/argument errors. - SilenceUsage: true, PreRunE: func(cmd *cobra.Command, args []string) error { return configlog.ReturnFatal(parser.ParseConfig(cfg)) },