Replace old Help term by Placeholder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2020-09-07 19:33:09 +02:00
parent eca814ca4b
commit a0155c6deb
10 changed files with 28 additions and 28 deletions

View file

@ -400,7 +400,7 @@ func deleteExerciceHint(hint fic.EHint, _ []byte) (interface{}, error) {
type uploadedFlag struct {
Label string
Help string
Placeholder string
IgnoreCase bool
Multiline bool
ValidatorRe *string `json:"validator_regexp"`
@ -424,7 +424,7 @@ func createExerciceFlag(exercice fic.Exercice, body []byte) (interface{}, error)
vre = uk.ValidatorRe
}
return exercice.AddRawFlagKey(uk.Label, uk.Help, uk.IgnoreCase, uk.Multiline, vre, []byte(uk.Flag), uk.ChoicesCost)
return exercice.AddRawFlagKey(uk.Label, uk.Placeholder, uk.IgnoreCase, uk.Multiline, vre, []byte(uk.Flag), uk.ChoicesCost)
}
func showExerciceFlag(flag fic.FlagKey, _ fic.Exercice, body []byte) (interface{}, error) {
@ -464,7 +464,7 @@ func updateExerciceFlag(flag fic.FlagKey, exercice fic.Exercice, body []byte) (i
flag.Label = uk.Label
}
flag.Help = uk.Help
flag.Placeholder = uk.Placeholder
flag.IgnoreCase = uk.IgnoreCase
flag.Multiline = uk.Multiline
if len(uk.Flag) > 0 {