getopt wrapper, base class for console application, that automatically cope with passes command line arguments