Check command format before calling it.