vendor updates

This commit is contained in:
Serguei Bezverkhi
2018-03-06 17:33:18 -05:00
parent 4b3ebc171b
commit e9033989a0
5854 changed files with 248382 additions and 119809 deletions

View File

@ -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() {