Check for errors when processing command line arguments.  Fixes upc2c#47.