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 <matt@mattfarina.com>
This commit is contained in:
Matt Farina 2020-05-22 09:51:48 -04:00
parent 25aa9d0e65
commit 99f277a2f3
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909
1 changed files with 1 additions and 1 deletions

View File

@ -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")