Rename Value.Value to Value.Target to correctly reflect its purpose.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user