Skip to content

Commit

Permalink
Don't nvm silence usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Aug 7, 2024
1 parent 89220de commit 1f5fd2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/commands/nvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1f5fd2d

Please sign in to comment.