aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/option-array-type.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/markdown/snippets/option-array-type.md b/docs/markdown/snippets/option-array-type.md
index f073dc1..9eb1312 100644
--- a/docs/markdown/snippets/option-array-type.md
+++ b/docs/markdown/snippets/option-array-type.md
@@ -3,8 +3,9 @@
Previously to have an option that took more than one value a string value would
have to be created and split, but validating this was difficult. A new array type
has been added to the meson_options.txt for this case. It works like a 'combo', but
-allows more than one option to be passed. When used on the command line (with -D),
-values are passed as a comma separated list.
+allows more than one option to be passed. The values can optionally be validated
+against a list of valid values. When used on the command line (with -D), values
+are passed as a comma separated list.
```meson
option('array_opt', type : 'array', choices : ['one', 'two', 'three'], value : ['one'])