public static GlVersion GetGlVersion(CmdOptions options) { foreach (GlVersion glVersion in Versions) { if (glVersion.Version == options.Version) { return(glVersion); } } return(null); }
static void Run(CmdOptions options) { GlParser.Parse(GetGlXmlStream()); GlVersion glVersion = GlParser.GetGlVersion(options); if (glVersion == null) { Console.WriteLine("Can't find specified gl version or profile."); return; } new GlFullVersion(glVersion, options.Profile).Generate(); }