Merge pull request #9259 from duglin/Issue9221
Make --tlsverify enable tls regardless of value specified
This commit is contained in:
commit
4687dc48f6
1 changed files with 10 additions and 0 deletions
|
@ -394,12 +394,22 @@ func (f *FlagSet) Lookup(name string) *Flag {
|
||||||
return f.formal[name]
|
return f.formal[name]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Indicates whether the specified flag was specified at all on the cmd line
|
||||||
|
func (f *FlagSet) IsSet(name string) bool {
|
||||||
|
return f.actual[name] != nil
|
||||||
|
}
|
||||||
|
|
||||||
// Lookup returns the Flag structure of the named command-line flag,
|
// Lookup returns the Flag structure of the named command-line flag,
|
||||||
// returning nil if none exists.
|
// returning nil if none exists.
|
||||||
func Lookup(name string) *Flag {
|
func Lookup(name string) *Flag {
|
||||||
return CommandLine.formal[name]
|
return CommandLine.formal[name]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Indicates whether the specified flag was specified at all on the cmd line
|
||||||
|
func IsSet(name string) bool {
|
||||||
|
return CommandLine.IsSet(name)
|
||||||
|
}
|
||||||
|
|
||||||
// Set sets the value of the named flag.
|
// Set sets the value of the named flag.
|
||||||
func (f *FlagSet) Set(name, value string) error {
|
func (f *FlagSet) Set(name, value string) error {
|
||||||
flag, ok := f.formal[name]
|
flag, ok := f.formal[name]
|
||||||
|
|
Loading…
Reference in a new issue