parent
443d702971
commit
576f0c98d2
@ -23,7 +23,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
import argparse
|
import argparse
|
||||||
from spack.cmd.common import print_module_placeholder_help
|
from spack.cmd.common import print_module_placeholder_help, arguments
|
||||||
|
|
||||||
description = "add package to environment using `module load`"
|
description = "add package to environment using `module load`"
|
||||||
section = "environment"
|
section = "environment"
|
||||||
@ -36,7 +36,8 @@ def setup_parser(subparser):
|
|||||||
subparser.add_argument(
|
subparser.add_argument(
|
||||||
'spec', nargs=argparse.REMAINDER,
|
'spec', nargs=argparse.REMAINDER,
|
||||||
help="spec of package to load with modules "
|
help="spec of package to load with modules "
|
||||||
"(if -, read specs from STDIN)")
|
)
|
||||||
|
arguments.add_common_arguments(subparser, ['recurse_dependencies'])
|
||||||
|
|
||||||
|
|
||||||
def load(parser, args):
|
def load(parser, args):
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
import argparse
|
import argparse
|
||||||
from spack.cmd.common import print_module_placeholder_help
|
from spack.cmd.common import print_module_placeholder_help, arguments
|
||||||
|
|
||||||
description = "add package to environment using dotkit"
|
description = "add package to environment using dotkit"
|
||||||
section = "environment"
|
section = "environment"
|
||||||
@ -36,6 +36,7 @@ def setup_parser(subparser):
|
|||||||
subparser.add_argument(
|
subparser.add_argument(
|
||||||
'spec', nargs=argparse.REMAINDER,
|
'spec', nargs=argparse.REMAINDER,
|
||||||
help='spec of package to use with dotkit')
|
help='spec of package to use with dotkit')
|
||||||
|
arguments.add_common_arguments(subparser, ['recurse_dependencies'])
|
||||||
|
|
||||||
|
|
||||||
def use(parser, args):
|
def use(parser, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user