From ef80efdb10d39ff809315d00c5350630479de41f Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 3 Oct 2022 16:59:46 +0000 Subject: [PATCH] fix: Output help on license subcommand Fixes #4314. --- enterprise/cli/licenses.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enterprise/cli/licenses.go b/enterprise/cli/licenses.go index e1cc4992387ea..024253b3ee213 100644 --- a/enterprise/cli/licenses.go +++ b/enterprise/cli/licenses.go @@ -24,6 +24,9 @@ func licenses() *cobra.Command { Short: "Add, delete, and list licenses", Use: "licenses", Aliases: []string{"license"}, + RunE: func(cmd *cobra.Command, args []string) error { + return cmd.Help() + }, } cmd.AddCommand( licenseAdd(),