diff options
| author | Alex Flint <[email protected]> | 2016-01-23 21:07:42 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2016-01-23 21:07:42 -0800 |
| commit | 77dd0df006f564a0768ee7ddc194f08e328f864e (patch) | |
| tree | d71dab9fd1abdac627ed1d17616e226897c50093 /usage.go | |
| parent | c0809e537fc01b4a33ced1bf56212837108d7264 (diff) | |
| parent | a1c72f6aa9b1972a6d0e0c47052e805a0f1f3656 (diff) | |
Merge pull request #31 from alexflint/parse_ip_mac_and_email
Parse IP addresses, MAC addresses, and email addresses
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,7 +97,7 @@ func (p *Parser) WriteHelp(w io.Writer) { } // write the list of built in options - printOption(w, &spec{isBool: true, long: "help", short: "h", help: "display this help and exit"}) + printOption(w, &spec{boolean: true, long: "help", short: "h", help: "display this help and exit"}) } func printOption(w io.Writer, spec *spec) { @@ -127,7 +127,7 @@ func printOption(w io.Writer, spec *spec) { } func synopsis(spec *spec, form string) string { - if spec.isBool { + if spec.boolean { return form } return form + " " + strings.ToUpper(spec.long) |
