Improved command line argument processing.