summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/use.py
blob: 20072c3ef965880e5d88f4adbbb9476b3862709f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2018 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)

import argparse
from spack.cmd.common import print_module_placeholder_help, arguments

description = "add package to environment using dotkit"
section = "environment"
level = "long"


def setup_parser(subparser):
    """Parser is only constructed so that this prints a nice help
       message with -h. """
    subparser.add_argument(
        'spec', nargs=argparse.REMAINDER,
        help='spec of package to use with dotkit')
    arguments.add_common_arguments(subparser, ['recurse_dependencies'])


def use(parser, args):
    print_module_placeholder_help()