normalizeFlag extracts the canonical flag token from tok, or "" if tok is not a real flag (e.g. a shell-string fragment like "-草稿'").
(tok string)
| 210 | // normalizeFlag extracts the canonical flag token from tok, or "" if tok is not |
| 211 | // a real flag (e.g. a shell-string fragment like "-草稿'"). |
| 212 | func normalizeFlag(tok string) string { |
| 213 | return flagShape.FindString(tok) |
| 214 | } |
| 215 | |
| 216 | func isBoundary(b byte) bool { |
| 217 | switch b { |