spack info: replace "True, False" with "on, off" (#16235)

fixes #16184
This commit is contained in:
Massimiliano Culpo 2020-04-23 02:48:52 +02:00 committed by GitHub
parent d0bff870a6
commit 6f9373dd66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,10 +114,8 @@ def lines(self):
'{0} [{1}]'.format(k, self.default(v)),
width=self.column_widths[0]
)
allowed = textwrap.wrap(
v.allowed_values,
width=self.column_widths[1]
)
allowed = v.allowed_values.replace('True, False', 'on, off')
allowed = textwrap.wrap(allowed, width=self.column_widths[1])
description = textwrap.wrap(
v.description,
width=self.column_widths[2]