Fix regression in clean.

This commit is contained in:
Todd Gamblin 2013-02-21 19:10:28 -08:00
parent 2a908d6a0e
commit b39165b999

View file

@ -3,7 +3,7 @@
import spack.stage as stage import spack.stage as stage
def setup_parser(subparser): def setup_parser(subparser):
subparser.add_argument('names', nargs='?', help="name(s) of package(s) to clean") subparser.add_argument('names', nargs='+', help="name(s) of package(s) to clean")
subparser.add_argument('-c', "--clean", action="store_true", dest='clean', subparser.add_argument('-c', "--clean", action="store_true", dest='clean',
help="run make clean in the stage directory (default)") help="run make clean in the stage directory (default)")
subparser.add_argument('-w', "--work", action="store_true", dest='work', subparser.add_argument('-w', "--work", action="store_true", dest='work',