parse command line options for host and port