If we do attack Iran, it must be an activity of three parts.
The first is an air war to destroy their nuclear infrastructure. But that is a temporary measure, as they are correct in assuming that they can (and have the will) to rebuild it.
So it must be accompanied by the partitioning of Iran, to deny it the oil revenues it would need to rebuild its nuclear weapons program. This would amount to a minimum of slicing off Iranian Kurdistan and Iranian Arabic Khuzestan, which has most of its oil wealth. This would also have the added bonus of denying Iran easy access to the Persian Gulf, so they could no longer easily menace the world’s oil supply.
In turn, these minimum partitioned regions would require that we reduce the Iranian military and Revolutionary Guard, so that they could not attempt to recapture the lands occupied respectively by the Kurdish Peshmurga army and the Iraqi Army.
Fortunately, almost all of the peoples in these lands would be more than glad to join with the adjacent peoples, with whom they have far more in common than Persians, who treat them as despised minorities and steal their wealth.
By not attacking, or only minimally attacking Persia proper, especially only military targets in Tehran, it might be possible to avoid inflaming the majority of Persians, who would be far less inclined to be slaughtered to defend the hated and corrupt Mullahs that rule over them. Especially considering how their lives were squandered in the Iran-Iraq War.
So the destruction of their nuclear infrastructure and armed forces can mostly be done by air, with a rapid movement of two or three of our ground divisions currently in Iraq to slice off Kurdistan and Khuzestan, followed by the Kurdish Peshmurga and Iraqi Army.
Other variants to the scheme might include the annexation of Iranian Baluchistan in the southeast by the Pakistani Army, which would further deny Iran the rich mineral wealth of that region; and to utterly destroy and use denial weapons on the Iranian uranium mines in their Azeri territories.
But it is vital that we do not just destroy what of their nuclear infrastructure we can, or else in a decade, just like with Iraq, we will have to invade and conquer the whole of Iran, at much higher cost in lives and treasure.
We need to send in airborn or special forces to take out some of the targets, which are hardened, but should probably be out of most of Iran in a month or so.
We need to take out all the nuclear sites. We also need to take out the leadership and the Revolutionary Guard, to give the decent Iranians some chance of staging a revolution against the Mullahs.
Partition? Maybe so. But it could be dangerous, because that would mean that the Sunni Arabs controlled even more oil than they already do. The other solution is to prepare the way for regime change by taking out the forces that are keeping the mullahs in power.