diff options
| author | Mitch Connors <[email protected]> | 2019-08-13 13:53:33 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-13 13:53:33 -0700 |
| commit | 7be56aed732047a9d1c87f0e093d4a3713322331 (patch) | |
| tree | fcf91326634443a5179ebfc8bd3341aa6278e29a | |
| parent | 24fa6976df40757dce6aea913e7b81ade90530e1 (diff) | |
| parent | 4890c259ad841b77288ae1507c4b28d799c35afc (diff) | |
Merge pull request #210 from dsbrng25b/master
Fix package doc
| -rw-r--r-- | flag.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,9 +57,9 @@ that give one-letter shorthands for flags. You can use these by appending var ip = flag.IntP("flagname", "f", 1234, "help message") var flagvar bool func init() { - flag.BoolVarP("boolname", "b", true, "help message") + flag.BoolVarP(&flagvar, "boolname", "b", true, "help message") } - flag.VarP(&flagVar, "varname", "v", 1234, "help message") + flag.VarP(&flagval, "varname", "v", "help message") Shorthand letters can be used with single dashes on the command line. Boolean shorthand flags can be combined with other shorthand flags. |
