mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor updates
This commit is contained in:
10
vendor/k8s.io/kubernetes/pkg/version/verflag/verflag.go
generated
vendored
10
vendor/k8s.io/kubernetes/pkg/version/verflag/verflag.go
generated
vendored
@ -85,10 +85,18 @@ func Version(name string, value versionValue, usage string) *versionValue {
|
||||
return p
|
||||
}
|
||||
|
||||
const versionFlagName = "version"
|
||||
|
||||
var (
|
||||
versionFlag = Version("version", VersionFalse, "Print version information and quit")
|
||||
versionFlag = Version(versionFlagName, VersionFalse, "Print version information and quit")
|
||||
)
|
||||
|
||||
// AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the
|
||||
// same value as the global flags.
|
||||
func AddFlags(fs *flag.FlagSet) {
|
||||
fs.AddFlag(flag.Lookup(versionFlagName))
|
||||
}
|
||||
|
||||
// PrintAndExitIfRequested will check if the -version flag was passed
|
||||
// and, if so, print the version and exit.
|
||||
func PrintAndExitIfRequested() {
|
||||
|
Reference in New Issue
Block a user