From 9d04f9147c75075b40afe5fe2429898c2db0d3e1 Mon Sep 17 00:00:00 2001 From: Kenny Meador Date: Sun, 21 Jan 2024 11:41:06 -0600 Subject: [PATCH] Properly detect unexpected arguments Signed-off-by: Kenny Meador (cherry picked from commit 145fd1c2f2f41fbba5cba2d248d383d77efd3e65) --- cmd/flux/uninstall.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/flux/uninstall.go b/cmd/flux/uninstall.go index 0128a833..d82077ea 100644 --- a/cmd/flux/uninstall.go +++ b/cmd/flux/uninstall.go @@ -30,6 +30,7 @@ import ( var uninstallCmd = &cobra.Command{ Use: "uninstall", + Args: cobra.NoArgs, Short: "Uninstall Flux and its custom resource definitions", Long: `The uninstall command removes the Flux components and the toolkit.fluxcd.io resources from the cluster.`, Example: ` # Uninstall Flux components, its custom resources and namespace