(args []string)
| 102 | } |
| 103 | |
| 104 | func parseIntArgs(args []string) ([]int64, error) { |
| 105 | ids := make([]int64, 0, len(args)) |
| 106 | for _, arg := range args { |
| 107 | id, err := strconv.ParseInt(arg, 10, 64) |
| 108 | if err != nil { |
| 109 | return nil, output.ErrUsage(fmt.Sprintf("invalid posting ID: %s", arg)) |
| 110 | } |
| 111 | ids = append(ids, id) |
| 112 | } |
| 113 | return ids, nil |
| 114 | } |