Skip to content

Commit 89566d5

Browse files
committed
configure --set support list as arguments
1 parent 8763965 commit 89566d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/configure.py

+7
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ def err(msg):
182182
print("configure: error: " + msg)
183183
sys.exit(1)
184184

185+
def is_value_list(key):
186+
for option in options:
187+
if option.name == key and option.desc.startswith('List of'):
188+
return True
189+
return False
185190

186191
if '--help' in sys.argv or '-h' in sys.argv:
187192
print('Usage: ./configure [options]')
@@ -295,6 +300,8 @@ def set(key, value, config):
295300
parts = key.split('.')
296301
for i, part in enumerate(parts):
297302
if i == len(parts) - 1:
303+
if is_value_list(part):
304+
value = value.split(',')
298305
arr[part] = value
299306
else:
300307
if part not in arr:

0 commit comments

Comments
 (0)