Provide cmd.Int()
and cmd.Int64()
variants
#2038
Labels
area/v3
relates to / is being considered for v3
status/triage
maintainers still need to look into this
Checklist
What problem does this solve?
Currently only the
var flag int = int(cmd.Int("flag")) # int64
is supported. That forces explicit conversionsint(flag)
.Solution description
Support all Go primitive types e.g.
int
,int64
,float32
,float64
when retrieving flag values from a command, in order avoid explicit conversions.Describe alternatives you've considered
Otherwise, explicit conversions must be applied e.g.
int(flag)
The text was updated successfully, but these errors were encountered: