Functions that help parse arguments
(args []string)
| 12 | // Functions that help parse arguments |
| 13 | |
| 14 | func pathArg(args []string) string { |
| 15 | if len(args) > 0 { |
| 16 | p, err := filepath.Abs(args[0]) |
| 17 | if err != nil { |
| 18 | // Can occur when the current working directory cannot be determined. |
| 19 | panic(errors.WithStack(err)) |
| 20 | } |
| 21 | return p |
| 22 | } |
| 23 | return "" |
| 24 | } |
no outgoing calls
no test coverage detected