summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2022-10-29 15:08:48 -0400
committerAlex Flint <[email protected]>2022-10-29 15:08:48 -0400
commit522dbbcea81814016fe121489fe9bc87ee1c82bf (patch)
tree84317be65ace08ad550d24729547c06164bb1b45 /usage.go
parent27c832b934678d80580efd9940e5183ef3d687da (diff)
add test for the new default value parsing logic as it shows up in help messages
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usage.go b/usage.go
index e936811..7d2a517 100644
--- a/usage.go
+++ b/usage.go
@@ -301,7 +301,7 @@ func (p *Parser) printOption(w io.Writer, spec *spec) {
ways = append(ways, synopsis(spec, "-"+spec.short))
}
if len(ways) > 0 {
- printTwoCols(w, strings.Join(ways, ", "), spec.help, spec.defaultVal, spec.env)
+ printTwoCols(w, strings.Join(ways, ", "), spec.help, spec.defaultString, spec.env)
}
}