summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2021-01-31 19:20:28 -0800
committerAlex Flint <[email protected]>2021-01-31 19:20:28 -0800
commit2a91531140cfb74c2fc889d80d4e0b50ea4906dd (patch)
tree0d822d3d0962649bc6d9bb08575457dc513ef30f /parse.go
parent788c166025870bc4653adb5986d03f99c1d14af2 (diff)
parent2a23168641ed1fb55f5f4dc72f50bdf15cb65b27 (diff)
Merge remote-tracking branch 'origin/master' into optional-long
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index 3b4ecd3..5308d70 100644
--- a/parse.go
+++ b/parse.go
@@ -264,7 +264,7 @@ func cmdFromStruct(name string, dest path, t reflect.Type) (*command, error) {
walkFields(t, func(field reflect.StructField, t reflect.Type) bool {
// Check for the ignore switch in the tag
tag := field.Tag.Get("arg")
- if tag == "-" {
+ if tag == "-" || !isExported(field.Name) {
return false
}