Use pflags word separators to make - and _ equiv.

This commit is contained in:
Tim Hockin
2015-04-23 20:50:35 -07:00
parent 22db9fb176
commit 6694eff020
6 changed files with 12 additions and 13 deletions

View File

@@ -55,6 +55,7 @@ func isYAML(data []byte) bool {
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
flag.Commandline.SetWordSeparators([]string{"-", "_"})
flag.Parse()
if *rewrite != "" {