Rewrite command line options parsing to support long names also.