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>
Signed-off-by: Matheus Hunsche <matheus.hunsche@ifood.com.br>
pull/8840/head
Matt Farina 5 years ago committed by Matheus Hunsche
parent c51b6cbb5d
commit 1d856c76d7

@ -74,7 +74,7 @@ func newStatusCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
return compListReleases(toComplete, cfg) 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") f.IntVar(&client.Version, "revision", 0, "if set, display the status of the named release with revision")
flag := f.Lookup("revision") flag := f.Lookup("revision")

Loading…
Cancel
Save