#!/usr/bin/env node

/**
 * Module dependencies.
 */
var program = require('commander');

/**
 * Init.
 */
var version = "0.1.0"

/**
 * Config.
 */
program
  .version(version)
  .command('export [filename]', "export installed packages")
  .command('list', 'list packages installed')
  .parse(process.argv);


/**
 * Do Work
 */

console.log('Atom Configuration tool version %s',version);

#!/usr/bin/env node

/**
 * Module dependencies.
 */
var program = require('commander');
var list = require('./list');

/**
 * Init.
 */
var version = "0.1.0";

/**
 * Config.
 */

program
  .command('list')
  .description('list currently installed packages')
  .action(function(){
    list.getList();
});


program.version(version);

console.log('Atom Configuration Tool version %s',version);

program.parse(process.argv);

if (!program.args.length) program.help();

Add list requirement and fix commander settings