Refactor parsing of args out of main to facilitate testing
Refactor parsing of args out of main to facilitate testing

jmorton/yatsm,valpasq/yatsm,jmorton/yatsm,c11/yatsm,ceholden/yatsm,c11/yatsm,jmorton/yatsm,ceholden/yatsm,valpasq/yatsm