Handle cmd line args gracefully.