Finalize processOptions and processArguments.