sync: turn IgnoreCase on by default with reverse field CaseSensitive
This commit is contained in:
parent
33f7d104e4
commit
99fcc99e82
2 changed files with 15 additions and 15 deletions
|
@ -35,7 +35,7 @@ type ExerciceFlag struct {
|
||||||
Raw interface{}
|
Raw interface{}
|
||||||
Separator string `toml:",omitempty"`
|
Separator string `toml:",omitempty"`
|
||||||
Ordered bool `toml:",omitempty"`
|
Ordered bool `toml:",omitempty"`
|
||||||
IgnoreCase bool `toml:",omitempty"`
|
CaseSensitive bool `toml:",omitempty"`
|
||||||
ValidatorRe string `toml:"validator_regexp,omitempty"`
|
ValidatorRe string `toml:"validator_regexp,omitempty"`
|
||||||
Help string `toml:",omitempty"`
|
Help string `toml:",omitempty"`
|
||||||
ChoicesCost int64 `toml:"choices_cost,omitempty"`
|
ChoicesCost int64 `toml:"choices_cost,omitempty"`
|
||||||
|
|
|
@ -112,7 +112,7 @@ func buildKeyFlag(exercice fic.Exercice, flag ExerciceFlag, flagline int, defaul
|
||||||
IdExercice: exercice.Id,
|
IdExercice: exercice.Id,
|
||||||
Label: flag.Label,
|
Label: flag.Label,
|
||||||
Help: flag.Help,
|
Help: flag.Help,
|
||||||
IgnoreCase: flag.IgnoreCase,
|
IgnoreCase: !flag.CaseSensitive,
|
||||||
ValidatorRegexp: validatorRegexp(flag.ValidatorRe),
|
ValidatorRegexp: validatorRegexp(flag.ValidatorRe),
|
||||||
Checksum: hashedFlag[:],
|
Checksum: hashedFlag[:],
|
||||||
ChoicesCost: flag.ChoicesCost,
|
ChoicesCost: flag.ChoicesCost,
|
||||||
|
|
Reference in a new issue