From ff463e3fa879797e7b5bad67e762c24870695d9d Mon Sep 17 00:00:00 2001 From: divolgin Date: Sat, 3 Aug 2019 17:01:27 +0000 Subject: [PATCH] collect support bundle without subcommand --- cmd/troubleshoot/cli/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/troubleshoot/cli/root.go b/cmd/troubleshoot/cli/root.go index a59de73f5..a11309bca 100644 --- a/cmd/troubleshoot/cli/root.go +++ b/cmd/troubleshoot/cli/root.go @@ -15,6 +15,7 @@ import ( func RootCmd() *cobra.Command { cmd := &cobra.Command{ Use: "troubleshoot [url]", + Args: cobra.MinimumNArgs(1), Short: "Generate and manage support bundles", Long: `A support bundle is an archive of files, output, metrics and state from a server that can be used to assist when troubleshooting a server.`,