#!/usr/bin/env node


var program = require('commander');

program
  .version('0.0.1')
  .usage('<file ...>')
  .parse(process.argv);

if (program.args.length < 1) {
  console.error('You need to specify a filename.');
  process.exit(1);
}

var filename = program.args[0];
console.log(program.args);

@@ -50,16 +50,44 @@
 ander');
+%0Avar xlsx = require('xlsx');
 %0A%0Aprogra
@@ -293,16 +293,17 @@
 rgs%5B0%5D;%0A
+%0A
 console.
@@ -306,23 +306,192 @@
 ole.log(
-program.args
+'Loading file', filename + '...');%0A%0Avar workbook = xlsx.readFile(filename);%0A%0Avar sheetnames = workbook.SheetNames;%0A%0Aconsole.log('Parsed the following sheets:', sheetnames.join(', ')
 );%0A

read xlsx file and show list of parsed sheet names