Add spack arch --platform
option
This commit is contained in:
parent
db89b534bd
commit
b962622975
@ -24,8 +24,18 @@
|
||||
##############################################################################
|
||||
import spack.architecture as architecture
|
||||
|
||||
description = "Print the architecture for this machine"
|
||||
description = "Print architecture information about this machine."
|
||||
|
||||
|
||||
def setup_parser(subparser):
|
||||
parts = subparser.add_mutually_exclusive_group()
|
||||
parts.add_argument(
|
||||
'-p', '--platform', action='store_true', default=False,
|
||||
help="Print only the platform.")
|
||||
|
||||
|
||||
def arch(parser, args):
|
||||
print architecture.sys_type()
|
||||
if args.platform:
|
||||
print architecture.platform()
|
||||
else:
|
||||
print architecture.sys_type()
|
||||
|
Loading…
Reference in New Issue
Block a user