diff --git a/cmd/neofs-adm/internal/modules/root.go b/cmd/neofs-adm/internal/modules/root.go index 6dd6221eef..d52e74804e 100644 --- a/cmd/neofs-adm/internal/modules/root.go +++ b/cmd/neofs-adm/internal/modules/root.go @@ -19,8 +19,9 @@ var ( Short: "NeoFS Administrative Tool", Long: `NeoFS Administrative Tool provides functions to setup and manage NeoFS network deployment.`, - RunE: entryPoint, - SilenceUsage: true, + RunE: entryPoint, + SilenceUsage: true, + SilenceErrors: true, } configFlag = "config" diff --git a/cmd/neofs-cli/modules/root.go b/cmd/neofs-cli/modules/root.go index 34b7f1e5dc..a02f184fa3 100644 --- a/cmd/neofs-cli/modules/root.go +++ b/cmd/neofs-cli/modules/root.go @@ -44,8 +44,10 @@ It contains commands for interaction with NeoFS nodes using different versions of neofs-api and some useful utilities for compiling ACL rules from JSON notation, managing container access through protocol gates, querying network map and much more!`, - Args: cobra.NoArgs, - RunE: entryPoint, + Args: cobra.NoArgs, + RunE: entryPoint, + SilenceErrors: true, + SilenceUsage: true, } // Execute adds all child commands to the root command and sets flags appropriately. diff --git a/cmd/neofs-lens/root.go b/cmd/neofs-lens/root.go index b9db8ab6d3..dc0096b2ce 100644 --- a/cmd/neofs-lens/root.go +++ b/cmd/neofs-lens/root.go @@ -15,11 +15,12 @@ import ( ) var command = &cobra.Command{ - Use: "neofs-lens", - Short: "NeoFS Storage Engine Lens", - Long: `NeoFS Storage Engine Lens provides tools to browse the contents of the NeoFS storage engine.`, - RunE: entryPoint, - SilenceUsage: true, + Use: "neofs-lens", + Short: "NeoFS Storage Engine Lens", + Long: `NeoFS Storage Engine Lens provides tools to browse the contents of the NeoFS storage engine.`, + RunE: entryPoint, + SilenceUsage: true, + SilenceErrors: true, } func entryPoint(cmd *cobra.Command, _ []string) error {