Beispiel #1
0
        public static Options GetOptions(string[] args)
        {
            var options = new Options();
            CommandLineParser.Default.ParseArguments(args, options);

            return options;
        }
Beispiel #2
0
 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);
     }
 }