parse port number from the command line