Removal of getopt-based option parsing algorithm

getopt fails without listing all invalid options.
for static configuration files, configparser demands too much checking