aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-27 22:16:32 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-03 22:27:55 +0200
commitf8a419b27d3605c4b4d1af42debb10124a51b908 (patch)
treee8bb232849837db83262e4f3c636d6d89cdf5533 /docs/markdown/snippets
parentaa6b5762564af7fc2a01791183db684872311f48 (diff)
downloadmeson-f8a419b27d3605c4b4d1af42debb10124a51b908.zip
meson-f8a419b27d3605c4b4d1af42debb10124a51b908.tar.gz
meson-f8a419b27d3605c4b4d1af42debb10124a51b908.tar.bz2
String arguments can permit arbitrary string values
by leaving out the choices keyword.
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'])