/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true,
strict:true, undef:true, unused:true, curly:true, browser:false, indent:4,
maxerr:50 */

/*global require, console, process*/

// TODO: It needs paramns definition

var cliHelp = require('commander');

cliHelp
  .version('0.0.1')
  .option('-p, --peppers', 'Add peppers')
  .option('-P, --pineapple', 'Add pineapple')
  .option('-b, --bbq', 'Add bbq sauce')
  .option('-c, --cheese <type>', 'Add the specified type of cheese [marble]')
  .option('-C, --no-cheese', 'You do not want any cheese')
  .parse(process.argv);

console.log('you ordered a pizza with:');

if (cliHelp.peppers) {
    console.log(' - peppers');
}

if (cliHelp.pineapple) {
    console.log(' - pineapple');
}

if (cliHelp.bbq) {
    console.log(' - bbq');
}

var cheese = true === cliHelp.cheese
  ? 'marble'
  : cliHelp.cheese || 'no';

console.log(' - %s cheese', cheese);
console.log(cliHelp.args);
@@ -198,317 +198,233 @@
 */%0A%0A
-// TODO: It needs paramns definition%0A%0Avar cliHelp = require('commander');%0A%0AcliHelp%0A  .version('0.0.1')%0A  .option('-p, --peppers', 'Add peppers')%0A  .option('-P, --pineapple', 'Add pineapple')%0A  .option('-b, --bbq', 'Add bbq sauce')%0A  .option('-c, --cheese %3Ctype%3E', 'Add the specified type of cheese %5Bmarble%5D')%0A
+%0A(function () %7B%0A    'use strict';%0A%0A    var program = require('commander'),%0A        packageJSON = require('./../package.json');%0A%0A    // TODO: It needs paramns definition%0A    program%0A        .version(packageJSON.version)%0A      
   .o
@@ -435,428 +435,358 @@
 n('-
-C
+n
 , --n
-o-cheese', 'You do not want any cheese')%0A  .parse(process.argv);%0A%0Aconsole.log('you ordered a pizza with:');%0A%0Aif (cliHelp.peppers) %7B%0A    console.log(' - peppers');%0A%7D%0A%0Aif (cliHelp.pineapple) %7B%0A    console.log(' - pineapple');%0A%7D%0A%0Aif (cliHelp.bbq) %7B%0A    console.log(' - bbq');%0A%7D%0A%0Avar cheese = true === cliHelp.cheese%0A  ? 'marble'%0A  : cliHelp.cheese %7C%7C 'no';%0A%0Aconsole.log(' - %25s cheese', cheese);%0Aconsole.log(cliHelp.args
+ew %5Bname%5D', 'Run something randon');%0A%0A    // new event%0A    program.on('new', function (a) %7B%0A        console.log('Run --new%3E Param %25s', a);%0A    %7D);%0A%0A    // Reference https://github.com/visionmedia/commander.js/blob/master/examples/custom-help%0A    program.parse(process.argv);%0A%0A    if (process.argv.length === 2) %7B%0A        program.help();%0A    %7D%0A%7D()
 );

Add example to start using commander.js