VarP is like Var, but accepts a shorthand letter that can be used after a single dash.
(value Value, name, shorthand, usage string)
| 931 | |
| 932 | // VarP is like Var, but accepts a shorthand letter that can be used after a single dash. |
| 933 | func VarP(value Value, name, shorthand, usage string) { |
| 934 | CommandLine.VarP(value, name, shorthand, usage) |
| 935 | } |
| 936 | |
| 937 | // fail prints an error message and usage message to standard error and |
| 938 | // returns the error. |