commit | 4a954c811a96898c02a04be92be949cf6a261d90 | [log] [tgz] |
---|---|---|
author | Yuta Hayashibe <yuta@hayashibe.jp> | Sun Aug 16 18:07:55 2015 +0900 |
committer | Yuta Hayashibe <yuta@hayashibe.jp> | Sun Aug 16 18:07:55 2015 +0900 |
tree | 2188e1a82c44ba007ee6d2939ccc43adf73abc04 | |
parent | a22c1141f37733bab4433d97fe31a62c95d74eb3 [diff] |
Reverted the function argumentIsOption
diff --git a/optstyle_other.go b/optstyle_other.go index 815db54..29ca4b6 100644 --- a/optstyle_other.go +++ b/optstyle_other.go
@@ -4,7 +4,6 @@ import ( "strings" - "unicode" ) const ( @@ -18,7 +17,7 @@ } func argumentIsOption(arg string) bool { - if len(arg) > 1 && arg[0] == '-' && arg[1] != '-' && !unicode.IsDigit(rune(arg[1])) { + if len(arg) > 1 && arg[0] == '-' && arg[1] != '-' { return true }