Created
August 15, 2012 15:38
-
-
Save roderik/3361075 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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