#! /usr/bin/env node

// Remove the first two paths
var args = process.argv.slice(2);

// Assume the next path is the input file to be processed
var input = args[0];

require('./process-file.js')(input)
#! /usr/bin/env node

// Print error message and quit if an error is found
process.on('uncaughtException', function(error) {
  console.error('Error: ' + error.message)
  process.exit(1)
});

// Remove the first two paths
var args = process.argv.slice(2);

// Assume the next path is the input file to be processed
var input = args[0];

require('./process-file.js')(input)
Add global exception handler