Int defines an int flag with specified name, default value, and usage string. The return value is the address of an int variable that stores the value of the flag.
(name string, value int, usage string)
| 75 | // Int defines an int flag with specified name, default value, and usage string. |
| 76 | // The return value is the address of an int variable that stores the value of the flag. |
| 77 | func Int(name string, value int, usage string) *int { |
| 78 | return CommandLine.IntP(name, "", value, usage) |
| 79 | } |
| 80 | |
| 81 | // IntP is like Int, but accepts a shorthand letter that can be used after a single dash. |
| 82 | func IntP(name, shorthand string, value int, usage string) *int { |