Loop for parsing options; rename options to arguments