It wasn't. A quick war would not serve the interests of the Ayathollas. It would be much to their advantage to engage in a protracted war. An attack would solidify Iranians behind their government and marginalize any dissidents.
UN: Gaza could be 'uninhabitable' by 2020 if trends continue (AP)
from the article: Israel attack wouldn't stop Iran nuclear program, says U.K. study