Using getopt and some cli classes to allow port option