mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #18256 from caesarxuchao/fix-17266
Auto commit by PR queue bot
This commit is contained in:
commit
f1505486b1
@ -74,6 +74,8 @@ func (v *versionValue) Type() string {
|
||||
func VersionVar(p *versionValue, name string, value versionValue, usage string) {
|
||||
*p = value
|
||||
flag.Var(p, name, usage)
|
||||
// "--version" will be treated as "--version=true"
|
||||
flag.Lookup(name).NoOptDefVal = "true"
|
||||
}
|
||||
|
||||
func Version(name string, value versionValue, usage string) *versionValue {
|
||||
|
Loading…
Reference in New Issue
Block a user