summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/usage.go b/usage.go
index 61f0ad6..eea6d29 100644
--- a/usage.go
+++ b/usage.go
@@ -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)