Implement flag type 'text': this is like keys, but on multiple lines
This commit is contained in:
parent
8f998485bb
commit
47ba134b55
9 changed files with 30 additions and 14 deletions
|
@ -325,6 +325,7 @@ type uploadedFlag struct {
|
|||
Label string
|
||||
Help string
|
||||
IgnoreCase bool
|
||||
Multiline bool
|
||||
ValidatorRe *string `json:"validator_regexp"`
|
||||
Flag string
|
||||
Value []byte
|
||||
|
@ -346,7 +347,7 @@ func createExerciceFlag(exercice fic.Exercice, body []byte) (interface{}, error)
|
|||
vre = uk.ValidatorRe
|
||||
}
|
||||
|
||||
return exercice.AddRawFlagKey(uk.Label, uk.Help, uk.IgnoreCase, vre, []byte(uk.Flag), uk.ChoicesCost)
|
||||
return exercice.AddRawFlagKey(uk.Label, uk.Help, uk.IgnoreCase, uk.Multiline, vre, []byte(uk.Flag), uk.ChoicesCost)
|
||||
}
|
||||
|
||||
func showExerciceFlag(flag fic.FlagKey, _ fic.Exercice, body []byte) (interface{}, error) {
|
||||
|
|
Reference in a new issue