Handle cli args in main.