Factor out cmd line arg parsing.