MCPcopy
hub / github.com/urfave/cli / Int

Method Int

flag_int.go:67–69  ·  view source on GitHub ↗

Int looks up the value of a local Int64Flag, returns 0 if not found

(name string)

Source from the content-addressed store, hash-verified

65// Int looks up the value of a local Int64Flag, returns
66// 0 if not found
67func (cmd *Command) Int(name string) int {
68 return getInt[int](cmd, name)
69}
70
71// Int8 looks up the value of a local Int8Flag, returns
72// 0 if not found

Callers 4

TestIntFlagFunction · 0.95
TestFlagActionFromEnvFunction · 0.95
TestFileValueSourceFunction · 0.80
TestFilePathsFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestIntFlagFunction · 0.76
TestFlagActionFromEnvFunction · 0.76
TestFileValueSourceFunction · 0.64
TestFilePathsFunction · 0.64