diff options
| author | Alex Flint <[email protected]> | 2016-01-23 20:49:57 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2016-01-23 20:49:57 -0800 |
| commit | e389d7f782c50124fbac2f2bbcb4c5794f8e2f44 (patch) | |
| tree | c422ed0b93abbeffe0707e325789768845488047 /usage.go | |
| parent | 8fee8f7bbe5933cfe3ba8c82479b91a8e777e5a0 (diff) | |
add support for IP address, email address, and MAC address
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) |
