Handle cli input