vendor: spf13/pflags v1.0.0

This commit is contained in:
Anthony Romano
2017-08-19 18:38:34 -07:00
parent c1b7e78c60
commit 8a956459d8
25 changed files with 995 additions and 196 deletions

View File

@ -1,9 +1,6 @@
package pflag
import (
"fmt"
"strconv"
)
import "strconv"
// optional interface to indicate boolean flags that can be
// supplied without "=value" text
@ -30,7 +27,7 @@ func (b *boolValue) Type() string {
return "bool"
}
func (b *boolValue) String() string { return fmt.Sprintf("%v", *b) }
func (b *boolValue) String() string { return strconv.FormatBool(bool(*b)) }
func (b *boolValue) IsBoolFlag() bool { return true }