diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 22:35:44 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 22:35:44 +0200 |
commit | 2cf1e8da15b954725fa9c9467bfb35a516814c89 (patch) | |
tree | 1b3c1a344095fa256233d268ed685f7a58ffe13a /docs/markdown/snippets | |
parent | 754e33e574dd37ab0efb0d336bb805861bc3e6cf (diff) | |
parent | f8a419b27d3605c4b4d1af42debb10124a51b908 (diff) | |
download | meson-2cf1e8da15b954725fa9c9467bfb35a516814c89.zip meson-2cf1e8da15b954725fa9c9467bfb35a516814c89.tar.gz meson-2cf1e8da15b954725fa9c9467bfb35a516814c89.tar.bz2 |
Merged array option branch.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/option-array-type.md | 5 |
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']) |