From f8a419b27d3605c4b4d1af42debb10124a51b908 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 27 Nov 2017 22:16:32 +0200 Subject: String arguments can permit arbitrary string values by leaving out the choices keyword. --- docs/markdown/snippets/option-array-type.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/markdown/snippets') 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']) -- cgit v1.1