/// <summary> /// Provides programmatic access to the commandline utility 'GML.exe'. /// </summary> /// <param name="args">GraphMl file or folder with several GraphMl files, path to folder where to save the generated class files</param> /// <remarks>The settings are displayed when 'GML.exe /?' is executed from the command line without arguments.</remarks> public static void RunWithCommandLineArguments(params string[] args) { ProgramSettings settings = new ProgramSettings(); if (!Parser.ParseArgumentsWithUsage(args, settings)) { return; } GraphmlCodeGen graphml = new GraphmlCodeGen(settings.GraphmlFileName, settings.InDirName, settings.OutDirName); graphml.GenerateClasses(); }
/// <summary> /// Provides programmatic access to the commandline utility 'GML.exe'. /// </summary> /// <param name="args">GraphMl file or folder with several GraphMl files, path to folder where to save the generated class files</param> /// <remarks>The settings are displayed when 'GML.exe /?' is executed from the command line without arguments.</remarks> public static void RunWithCommandLineArguments(params string[] args) { ProgramSettings settings = new ProgramSettings(); if (!Parser.ParseArgumentsWithUsage(args, settings)) { return; } GraphmlCodeGen graphml = new GraphmlCodeGen(settings.GraphmlFileName, settings.InDirName, settings.OutDirName); graphml.GenerateClasses(); }