summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/load.py
blob: ef8e29816a7731dff5ada130e81b8476120e9891 (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
25
# Copyright 2013-2019 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 `module load`"
section = "modules"
level = "short"


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 load with modules "
    )
    arguments.add_common_arguments(subparser, ['recurse_dependencies'])


def load(parser, args):
    print_module_placeholder_help()