'Create a new SpackCommand that invokes ``command`` when called.'

def __init__(self, command, fail_on_error=True):

    self.parser = make_argument_parser()
    self.parser.add_command(command)
    self.command_name = command
    self.command = spack.cmd.get_command(command)
    self.fail_on_error = fail_on_error
