Update flag.go

Make boolean flags more in line with standard UNIX boolean flags.
main
Mike Gehard 11 years ago
parent 8cea424806
commit 7ec896dde0

@ -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…
Cancel
Save