mirror of https://github.com/helm/helm.git
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:
parent
25aa9d0e65
commit
99f277a2f3
|
@ -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…
Reference in New Issue