True, but honestly I only see this ending one of two ways:
1) Iran makes a peace deal with economic incentives to the US, and agrees to regulation to make sure they do not become a nuclear power.
2) A war that ends in the death of their supreme leader and forces a regime change (be it with or without our direct involvement).
My guess is Iran chooses option #1. If they attack our military bases or embassies, that option is off the table and we will join Israel in destroying them.