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)
| 71 | // String defines a string flag with specified name, default value, and usage string. |
| 72 | // The return value is the address of a string variable that stores the value of the flag. |
| 73 | func String(name string, value string, usage string) *string { |
| 74 | return CommandLine.StringP(name, "", value, usage) |
| 75 | } |
| 76 | |
| 77 | // StringP is like String, but accepts a shorthand letter that can be used after a single dash. |
| 78 | func StringP(name, shorthand string, value string, usage string) *string { |