From 1d856c76d79617e5eaa5e0834852fa41868db647 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Fri, 22 May 2020 09:51:48 -0400 Subject: [PATCH] Using flags instead of persistent flags on status Persistent flags are available on subcommands. Status does not need the persistent nature. Closes #8149 Signed-off-by: Matt Farina Signed-off-by: Matheus Hunsche --- cmd/helm/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/status.go b/cmd/helm/status.go index 6313b3975..2efb2006c 100644 --- a/cmd/helm/status.go +++ b/cmd/helm/status.go @@ -74,7 +74,7 @@ func newStatusCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { return compListReleases(toComplete, cfg) }) - f := cmd.PersistentFlags() + f := cmd.Flags() f.IntVar(&client.Version, "revision", 0, "if set, display the status of the named release with revision") flag := f.Lookup("revision")