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
|
||||
|
||||
if !flag.CaseSensitive {
|
||||
val = strings.ToLower(val)
|
||||
}
|
||||
|
||||
choices = append(choices, fic.FlagChoice{
|
||||
Label: choice.Label,
|
||||
Value: val,
|
||||
|
|
Loading…
Reference in New Issue