From c49da5aa00c1d3b0a89c51274786374ba80f46f9 Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Mon, 9 Nov 2015 14:45:05 -0800 Subject: Enhance mesonconfig.py help Added code to output the 'Possible values' and also titles for the columns. Added code to so 'choices' is allowed for all UserOption's. --- optinterpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'optinterpreter.py') diff --git a/optinterpreter.py b/optinterpreter.py index f106326..f111610 100644 --- a/optinterpreter.py +++ b/optinterpreter.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 The Meson development team +# Copyright 2013-2014 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ optname_regex = re.compile('[^a-zA-Z0-9_-]') def StringParser(name, description, kwargs): return coredata.UserStringOption(name, description, - kwargs.get('value', '')) + kwargs.get('value', ''), kwargs.get('choices', [])) def BooleanParser(name, description, kwargs): return coredata.UserBooleanOption(name, description, kwargs.get('value', True)) -- cgit v1.1