cleanup arg parsing