Answer:
He means that he wants you to wish for something important. He tells you not to waste the wish on something dismissible. The signal phrase “he said gruffly” indicates that he’s trying to tell you some wise advice which will reflect in the future.