sync: Make value lowercase if flag is not case sensitive
This commit is contained in:
parent
63423c9c69
commit
8a6d480d17
|
@ -169,6 +169,10 @@ func buildKeyFlag(exercice fic.Exercice, flag ExerciceFlag, flagline int, defaul
|
||||||
}
|
}
|
||||||
choice.Label = prep + choice.Label
|
choice.Label = prep + choice.Label
|
||||||
|
|
||||||
|
if !flag.CaseSensitive {
|
||||||
|
val = strings.ToLower(val)
|
||||||
|
}
|
||||||
|
|
||||||
choices = append(choices, fic.FlagChoice{
|
choices = append(choices, fic.FlagChoice{
|
||||||
Label: choice.Label,
|
Label: choice.Label,
|
||||||
Value: val,
|
Value: val,
|
||||||
|
|
Loading…
Reference in New Issue