parse port and host command line options correctly