update tool: produce more meaningful messages when cli parameters are wrong.