Move setup of argparser to it's own function (to make generating docs easier)