From 6f39d8011e8b0c56edc5d29d99b0eff9974c58cf Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Tue, 31 Mar 2020 16:33:06 -0700 Subject: [PATCH] spack test: factor out common args --- lib/spack/spack/cmd/test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/spack/spack/cmd/test.py b/lib/spack/spack/cmd/test.py index 240925c001f..ba162e4deeb 100644 --- a/lib/spack/spack/cmd/test.py +++ b/lib/spack/spack/cmd/test.py @@ -1,7 +1,7 @@ # Copyright 2013-2020 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) +# SPDX-License-Identifier: Apache-2.0 OR MIT) from __future__ import print_function import os @@ -54,9 +54,7 @@ def setup_parser(subparser): cd_group = subparser.add_mutually_exclusive_group() arguments.add_common_arguments(cd_group, ['clean', 'dirty']) - subparser.add_argument( - 'specs', nargs=argparse.REMAINDER, - help="list of specs to test") + arguments.add_common_arguments(subparser, ['installed_specs']) def test(parser, args):