From 148e4015e55fe6e7c4583c9ebd74b9e5803465e9 Mon Sep 17 00:00:00 2001 From: Kenny Meador Date: Mon, 22 Jan 2024 19:50:51 -0600 Subject: [PATCH] detect unexpected args in flux stats command Signed-off-by: Kenny Meador (cherry picked from commit 1a0d931ab56aceb57dc5e02e165c855f5351a71b) --- cmd/flux/stats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/flux/stats.go b/cmd/flux/stats.go index 0181ffab3b..fbb9a66f0b 100644 --- a/cmd/flux/stats.go +++ b/cmd/flux/stats.go @@ -42,6 +42,7 @@ import ( var statsCmd = &cobra.Command{ Use: "stats", + Args: cobra.NoArgs, Short: "Stats of Flux reconciles", Long: withPreviewNote(`The stats command prints a report of Flux custom resources present on a cluster, including their reconcile status and the amount of cumulative storage used for each source type`),