const ( VersionFalse versionValue = "false" VersionTrue versionValue = "true" VersionRaw versionValue = "raw" )
func AddFlags(fs *flag.FlagSet)
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func PrintAndExitIfRequested()
PrintAndExitIfRequested will check if --version or --version=raw was passed and, if so, print the version and exit.
func Version(name string, value versionValue, usage string) *versionValue
func VersionVar(p *versionValue, name string, value versionValue, usage string)