Update flag.go

Make boolean flags more in line with standard UNIX boolean flags.
This commit is contained in:
Mike Gehard 2013-09-06 09:36:57 -06:00
parent 8cea424806
commit 7ec896dde0

View File

@ -22,7 +22,7 @@ type BoolFlag struct {
}
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) {