From 46f194e7f1ffa959a6d0175b7ead71993b088f6f Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 3 Oct 2022 12:30:18 -0500 Subject: [PATCH] fix: Output help on license subcommand (#4338) 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 e1cc499238..024253b3ee 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(),