We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b371edb commit 0e38ee8Copy full SHA for 0e38ee8
unittest
@@ -301,6 +301,15 @@ cumul_test() {
301
parse_option_wrapper "multiple require (4)" --option3 --option2 --option1
302
)
303
304
+
305
+(
306
+ declare -a option_option1_values=(accept)
307
+ argsparse_use_option option1: ""
308
+ TEST=failure parse_option_wrapper "accepted values (bad value)" \
309
+ --option1 foo
310
+ parse_option_wrapper "accepted values (good value)" --option1 accept
311
+)
312
313
dir=$(mktemp -d)
314
file=$(mktemp --tmpdir="$dir")
315
declare -A types=(
0 commit comments