summaryrefslogtreecommitdiff
path: root/optinterpreter.py
diff options
context:
space:
mode:
authorWink Saville <wink@saville.com>2015-11-09 14:45:05 -0800
committerWink Saville <wink@saville.com>2015-11-09 14:45:05 -0800
commitc49da5aa00c1d3b0a89c51274786374ba80f46f9 (patch)
treef18dd24e6a3d3c7a42a72142620412838ede6542 /optinterpreter.py
parent8e24e9e09a17f4a944e827503b50c1b5282c1fc6 (diff)
downloadmeson-c49da5aa00c1d3b0a89c51274786374ba80f46f9.tar.gz
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.
Diffstat (limited to 'optinterpreter.py')
-rw-r--r--optinterpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/optinterpreter.py b/optinterpreter.py
index f10632630..f11161061 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))