Rename Value.Value to Value.Target to correctly reflect its purpose.

This commit is contained in:
Alec Thomas
2018-06-13 21:12:56 +10:00
parent 29fe92f286
commit c7dca86dad
6 changed files with 23 additions and 16 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ func buildField(k *Kong, node *Node, v reflect.Value, ft reflect.StructField, fv
Default: tag.Default,
Mapper: mapper,
Tag: tag,
Value: fv,
Target: fv,
// Flags are optional by default, and args are required by default.
Required: (!tag.Arg && tag.Required) || (tag.Arg && !tag.Optional),