MCPcopy Create free account
hub / github.com/basecamp/hey-cli / parseIntArgs

Function parseIntArgs

internal/cmd/seen.go:104–114  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

102}
103
104func 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}

Callers 2

runMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected