diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-04-23 02:48:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 17:48:52 -0700 |
commit | 6f9373dd66503d6751030fb425fd24dc1685a63c (patch) | |
tree | 13f2b0519716e18ac084b1fe26f81dd388b7e21f /lib | |
parent | d0bff870a6b3af5122c251d697c6d5a3f221d96c (diff) | |
download | spack-6f9373dd66503d6751030fb425fd24dc1685a63c.tar.gz spack-6f9373dd66503d6751030fb425fd24dc1685a63c.tar.bz2 spack-6f9373dd66503d6751030fb425fd24dc1685a63c.tar.xz spack-6f9373dd66503d6751030fb425fd24dc1685a63c.zip |
spack info: replace "True, False" with "on, off" (#16235)
fixes #16184
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/info.py | 6 |
1 files 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 @@ class VariantFormatter(object): '{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] |