mconf: Do not turn opt.choices into a string

It is inconsistent with other option groups. It also breaks
print_aligned as it handles lists.
pull/3177/head
Sander Sweers 7 years ago
parent daaae647d7
commit ae90b6586f
  1. 3
      mesonbuild/mconf.py

@ -233,8 +233,7 @@ class Conf:
# Zero length list or string
choices = ''
else:
# A non zero length list or string, convert to string
choices = str(opt.choices)
choices = opt.choices
optarr.append({'name': key,
'descr': opt.description,
'value': opt.value,

Loading…
Cancel
Save