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

@ -28,7 +28,7 @@ type myTeamHint struct {
}
type myTeamFlag struct {
Label string `json:"label"`
Help string `json:"help,omitempty"`
Placeholder string `json:"placeholder,omitempty"`
Separator string `json:"separator,omitempty"`
NbLines uint64 `json:"nb_lines,omitempty"`
IgnoreOrder bool `json:"ignore_order,omitempty"`
@ -221,7 +221,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
// Fill more information if the flag is displaied
if flag.Solved == nil {
flag.Help = k.Help
flag.Placeholder = k.Placeholder
if choices, err := k.GetChoices(); err != nil {
return nil, err
} else if t == nil || WChoiceCoefficient < 0 || k.ChoicesCost == 0 || t.SeeChoices(k) {