# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.cmd.common import arguments
from spack.cmd.compiler import compiler_list
description = "list available compilers"
section = "system"
level = "short"
[docs]
def setup_parser(subparser):
subparser.add_argument(
"--scope", action=arguments.ConfigScope, help="configuration scope to read/modify"
)
[docs]
def compilers(parser, args):
compiler_list(args)