'use strict';

// Load dependencies
const commandLineArguments = require('command-line-args');

const definitions = [{ name: 'data-file', type: String }];
exports = module.exports = commandLineArguments(definitions);

@@ -92,30 +92,96 @@
 ');%0A
-%0Aconst definitions = %5B
+const fs = require('fs');%0A%0Aconst definitions = %5B%0A  %7B name: 'crawler', type: String %7D,%0A  
 %7B na
@@ -215,34 +215,24 @@
 ng %7D
+%0A
 %5D;%0A
-exports = module.export
+const option
 s = 
@@ -266,8 +266,313 @@
 tions);%0A
+%0A// Validate that the crawler file exists%0Aif (!fs.existsSync(options.crawler)) %7B%0A  throw new Error('options: crawler not found');%0A%7D%0A%0A// Validate that the data file exists%0Aif (!fs.existsSync(options%5B'data-file'%5D)) %7B%0A  throw new Error('options: data file not found');%0A%7D%0A%0Aexports = module.exports = options;%0A

validate existence of crawler and data