optionSet.Add("p=|platform=","the {PLATFORM} that the generated code will target: 'win', 'osx' or 'linux'",p=>{GetDestinationPlatform(p,errorMessages);});
optionSet.Add("a=|arch=","the {ARCHITECTURE} that the generated code will target: 'x86' or 'x64'",a=>{GetDestinationArchitecture(a,errorMessages);});
optionSet.Add("exceptions","enables support for C++ exceptions in the parser",v=>{options.Arguments.Add("-fcxx-exceptions");});
optionSet.Add("exceptions","enables support for C++ exceptions in the parser",v=>{options.EnableExceptions=true;});
optionSet.Add("rtti","enables support for C++ RTTI in the parser",v=>{options.EnableRTTI=true;});
optionSet.Add("c++11","enables GCC C++ 11 compilation (valid only for Linux platform)",cpp11=>{options.Cpp11ABI=(cpp11!=null);});
optionSet.Add("cs|checksymbols","enable the symbol check for the generated code",cs=>{options.CheckSymbols=(cs!=null);});