Skip to content

Instantly share code, notes, and snippets.

@roderik
Created August 15, 2012 15:38
Show Gist options
  • Select an option

  • Save roderik/3361075 to your computer and use it in GitHub Desktop.

Select an option

Save roderik/3361075 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var colors = require('colors');
var program = require('commander');
program
.version('0.0.1')
.option('-v, --verbose', 'Show verbose logging')
program
.command('process <billpath> <nagiospath> <outputpath>')
.description('Process the bill')
.action(function(billpath, nagiospath, outputpath, options){
console.log('You want to parse %s and %s and write the output to %s', billpath.green.bold, nagiospath.green.bold, outputpath.red.bold)
});
program.parse(process.argv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment