The key determining factor could be whether any American boots land on the ground or not. Once they do land, there is then no end to the op. I am assuming a simple Venezuelan-style kidnapping of their leader won't work here, or it would have happened already. Fwiw, Iran of course is substantially larger than both Afghanistan and Iraq, so the risk of a prolonged operation is longer.