fixed some getopt matching, still doesn't compile :( - diagnosit::emit changed aswell..