(tokens []string)
| 249 | } |
| 250 | |
| 251 | func extractAllArgPaths(tokens []string) []string { |
| 252 | paths := []string{} |
| 253 | pastDashDash := false |
| 254 | |
| 255 | for _, t := range tokens { |
| 256 | if t == "--" { |
| 257 | pastDashDash = true |
| 258 | continue |
| 259 | } |
| 260 | |
| 261 | if !pastDashDash && strings.HasPrefix(t, "-") { |
| 262 | continue |
| 263 | } |
| 264 | |
| 265 | if isRedirectOperator(t) { |
| 266 | continue |
| 267 | } |
| 268 | |
| 269 | paths = append(paths, t) |
| 270 | } |
| 271 | |
| 272 | return paths |
| 273 | } |
| 274 | |
| 275 | func extractFirstArgPath(tokens []string) []string { |
| 276 | for _, t := range tokens { |
no test coverage detected