Move argument parsing out of botconfig.