diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-27 22:16:32 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-02 20:34:45 +0200 |
commit | dae21b70db07ca4d1a65c34fac6ec090761ac45f (patch) | |
tree | af5713459e1f9413ab07cb1cd3ec5b8c6ee72d29 /docs/markdown/snippets | |
parent | aa6b5762564af7fc2a01791183db684872311f48 (diff) | |
download | meson-arrayopt.tar.gz |
String arguments can permit arbitrary string valuesarrayopt
by leaving out the choices keyword.
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 f073dc1aa..9eb1312fa 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']) |