1
0
mirror of synced 2026-02-07 03:05:56 +00:00

Properly detect unexpected arguments

Signed-off-by: Kenny Meador <kenny.meador@outlook.com>
This commit is contained in:
Kenny Meador
2024-01-21 11:41:06 -06:00
parent 33e9a89305
commit 145fd1c2f2

View File

@@ -30,6 +30,7 @@ import (
var uninstallCmd = &cobra.Command{ var uninstallCmd = &cobra.Command{
Use: "uninstall", Use: "uninstall",
Args: cobra.NoArgs,
Short: "Uninstall Flux and its custom resource definitions", 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.`, 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 Example: ` # Uninstall Flux components, its custom resources and namespace