Pull arg parsing out of lib and into script