I have usually seen sentences written with need to, for example:
All you need to do is call me for help.
However, I came across a sentence like below in a published book.
In this case, we only need consider X, Y, and Z.
Is it okay to omit the "to" as above?
Somehow, "All you need do is call me for help." doesn't sound right. What is the rule regarding this?