diff options
| author | Alex Flint <[email protected]> | 2021-01-31 19:20:28 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2021-01-31 19:20:28 -0800 |
| commit | 2a91531140cfb74c2fc889d80d4e0b50ea4906dd (patch) | |
| tree | 0d822d3d0962649bc6d9bb08575457dc513ef30f /parse.go | |
| parent | 788c166025870bc4653adb5986d03f99c1d14af2 (diff) | |
| parent | 2a23168641ed1fb55f5f4dc72f50bdf15cb65b27 (diff) | |
Merge remote-tracking branch 'origin/master' into optional-long
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |
