public static Options GetOptions(string[] args) { var options = new Options(); CommandLineParser.Default.ParseArguments(args, options); return options; }
public static void WriteFiles(IDestinationParser destinationParser, IHTMLFileWriter htmlFileWriter, Options options) { var destinations = destinationParser.ReadAll(); foreach (var destination in destinations) { var outputPath = string.Format("{0}{1}.html", options.OutputFolder, destination.AtlasId); var content = htmlFileWriter.Generate(destination); File.WriteAllText(outputPath, content); } }