C/C++ Command line and resource file option parsing