#!/usr/bin/env node

var program = require('commander');
var config = {
  api: require('./config/api.json'),
  app: require('./config/app.json'),
  version: require('./package.json').version
};

main(
  program
    .version('wotblitz.js version ' + config.version)
    .option('-v, --verbose', 'output more information, like debugging values')
    .parse(process.argv)
);

function main(options) {
  if (options.verbose) {
    console.log(JSON.stringify(config));
  }
}

#!/usr/bin/env node

var program = require('commander');
var config = {
  api: require('./config/api.json'),
  app: require('./config/app.json'),
  pkg: require('./package.json')
};

process.title = config.pkg.name;

main(
  program
    .version('wotblitz.js version ' + config.pkg.version)
    .option('-v, --verbose', 'output more information, like debugging values')
    .parse(process.argv)
);

function main(options) {
  if (options.verbose) {
    console.log(JSON.stringify(config));
  }
}

Use package.json to name the process.
Use package.json to name the process.

Not setting the process name means that 'node'
will appear in `ps` instead of 'wotblitz'.
