String defines a string flag with specified name, default value, and usage string. The return value is the address of a string variable that stores the value of the flag.
(name string, value string, usage string)
| 60 | // String defines a string flag with specified name, default value, and usage string. |
| 61 | // The return value is the address of a string variable that stores the value of the flag. |
| 62 | func String(name string, value string, usage string) *string { |
| 63 | return CommandLine.StringP(name, "", value, usage) |
| 64 | } |
| 65 | |
| 66 | // Like String, but accepts a shorthand letter that can be used after a single dash. |
| 67 | func StringP(name, shorthand string, value string, usage string) *string { |