Update flag.go
Make boolean flags more in line with standard UNIX boolean flags.
This commit is contained in:
parent
8cea424806
commit
7ec896dde0
2
flag.go
2
flag.go
@ -22,7 +22,7 @@ type BoolFlag struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f BoolFlag) String() string {
|
func (f BoolFlag) String() string {
|
||||||
return fmt.Sprintf("--%v\t%v", f.Name, f.Usage)
|
return fmt.Sprintf("-%v\t%v", f.Name, f.Usage)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f BoolFlag) Apply(set *flag.FlagSet) {
|
func (f BoolFlag) Apply(set *flag.FlagSet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user