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>
pull/8183/head
Matt Farina 5 years ago
parent 25aa9d0e65
commit 99f277a2f3
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

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

Loading…
Cancel
Save