Use getopt for nicer arg parsing.