Use pflags word separators to make - and _ equiv.
This commit is contained in:
@@ -68,6 +68,7 @@ func (s *Server) Flags() *pflag.FlagSet {
|
||||
if s.flags == nil {
|
||||
s.flags = pflag.NewFlagSet(s.Name(), pflag.ContinueOnError)
|
||||
s.flags.SetOutput(ioutil.Discard)
|
||||
s.flags.SetWordSeparators([]string{"-", "_"})
|
||||
}
|
||||
return s.flags
|
||||
}
|
||||
|
Reference in New Issue
Block a user