Replaced getopt with optparse (which will need to be replaced again)

UCC git Repository :: git.ucc.asn.au