private static void RunOptions(Options opts) { try { JSONDirectory jsonDirectory = new JSONDirectory(opts.JsonDirectory); HTMLDirectory htmlDirectory = new HTMLDirectory(opts.HtmlDirectory); HTMLtoJSONProcessor processor = new HTMLtoJSONProcessor(htmlDirectory, jsonDirectory, opts.Verbose); if (processor.Process() > 0) { Console.WriteLine("Please fix all of the errors listed and rerun ConvertHtmlToJson."); } } catch (Exception ex) { Console.WriteLine(ex); } }
public HTMLtoJSONProcessor(HTMLDirectory htmlDirectory, JSONDirectory jsonDirectory, bool verbose) { this.htmlDirectory = htmlDirectory; this.jsonDirectory = jsonDirectory; this.verbose = verbose; }