Added command to print out URL and homepage.

This commit is contained in:
Todd Gamblin 2013-05-17 16:04:56 -07:00
parent 7c98ee9644
commit 6e557798e8

View file

@ -0,0 +1,13 @@
import spack
import spack.packages as packages
description = "Build and install packages"
def setup_parser(subparser):
subparser.add_argument('name', metavar="PACKAGE", help="name of packages to get info on")
def info(parser, args):
package = packages.get(args.name)
print "Homepage: ", package.homepage
print "Download: ", package.url