From 6f9373dd66503d6751030fb425fd24dc1685a63c Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 23 Apr 2020 02:48:52 +0200 Subject: [PATCH] spack info: replace "True, False" with "on, off" (#16235) fixes #16184 --- lib/spack/spack/cmd/info.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py index 81a68dae96..f8db9e10cb 100644 --- a/lib/spack/spack/cmd/info.py +++ b/lib/spack/spack/cmd/info.py @@ -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]