Add cmdline option parsing