Support validator question argument for select

This commit is contained in:
Rezart Qelibari
2022-02-17 17:51:31 +01:00
parent 90758b2fdd
commit eae2abbb01
2 changed files with 9 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ function convertQuestionArgsToAskUserArgs() {
choices=("${(s.,.)argValue}")
[ "${#choices}" -ge 1 ] || return 11
args=(choose)
findQuestionArgInInstruction 'validator' && args+=(-v ${argValue})
fi
return 0
}