From 1f5fd2da8d8c523777684f83254d79882a3514ce Mon Sep 17 00:00:00 2001 From: Dmitry Kireev Date: Wed, 7 Aug 2024 19:38:25 +0000 Subject: [PATCH] Don't nvm silence usage --- internal/commands/nvm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/commands/nvm.go b/internal/commands/nvm.go index a17a9468..9c3db098 100644 --- a/internal/commands/nvm.go +++ b/internal/commands/nvm.go @@ -52,7 +52,11 @@ func NewCmdNvm(project *config.Project) *cobra.Command { Long: nvmLongDesc, ValidArgsFunction: config.GetApps, RunE: func(cmd *cobra.Command, args []string) error { - cmd.SilenceUsage = true + if o.Config.LogLevel != "debug" && o.Config.LogLevel != "trace" { + cmd.SilenceUsage = true + } else { + cmd.SilenceUsage = false + } if len(cmd.Flags().Args()) == 0 { return fmt.Errorf("app name must be specified")