bin/captain.js
function load_data(filename) {
  var files = []
    , db = require('captain-core/lib/db');

  if(filename === true) {
    program.help();
  }

  if(helpers.isDirectory(filename)) {
   fs.readdirSync(filename).forEach(function(file) {
      files.push(join(filename, file));
    });
  } else {
    files.push(filename);
  }

  async.series(files.map(db.load), function(err){
    if(err) {
      terminal.abort('Failed loading data', err);
    } else {
      terminal.exit('\nAll done.\n\n');
    }
  });
}
function load_data(filename) {
  var files = []
    , db = require('captain-core/lib/db');

  if(filename === true) {
    program.help();
  }

  if(helpers.isDirectory(filename)) {
   fs.readdirSync(filename).forEach(function(file) {
      files.push(join(filename, file));
    });
  } else {
    files.push(filename);
  }

  async.series(files.map(db.load), function(err){
    if(err) {
      terminal.abort('Failed loading data', err);
    } else {
      terminal.exit('\nAll done.\n\n');
    }
  });
}
Usage: captain load_data <path>

Loads <path> if a file, or each files in <path> if a directory