summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2019-04-30 11:40:11 -0700
committerAlex Flint <[email protected]>2019-04-30 11:40:11 -0700
commitddec9e9e4febd4f367f31297ad2744d683f474b4 (patch)
treec128fa53b6c7e259e3513c1a6e73c1ee2d4f8654 /usage.go
parent7df132abe85e0f04971c9b271bc9cd62d750997c (diff)
rename get/settable to readable/writable
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 b40619f..833046f 100644
--- a/usage.go
+++ b/usage.go
@@ -144,7 +144,7 @@ func (p *Parser) printOption(w io.Writer, spec *spec) {
// If spec.dest is not the zero value then a default value has been added.
var v reflect.Value
if spec.root >= 0 {
- v = p.get(spec)
+ v = p.readable(spec)
}
if v.IsValid() {
z := reflect.Zero(v.Type())