summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2022-10-29 12:29:07 -0700
committerGitHub <[email protected]>2022-10-29 12:29:07 -0700
commit727f8533acca70ca429dce4bfea729a6af75c3f7 (patch)
tree4f09f68ab87dbff2f2a40edc15ba85d38a8119be /usage.go
parentdbc2ba5d0c9a6a439d1f825f8c299fb276bbc911 (diff)
parent3489ea5b2e9aa82dab4efc5e3f48fe6171f11ddd (diff)
Merge pull request #185 from alexflint/default-value-issue
Do not turn values intro strings and then back into values when processing default values
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 7ba06cc..7a480c3 100644
--- a/usage.go
+++ b/usage.go
@@ -305,7 +305,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)
}
}