Skip to content

Commit

Permalink
add pkgrc help command
Browse files Browse the repository at this point in the history
  • Loading branch information
mklabs committed Oct 23, 2011
1 parent 6cfb0ee commit fff228f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/pkgrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/usr/bin/env node
var completion = require('../lib/completion');
var completion = require('../lib/completion'),
help = require('../lib/docs').help
path = require('path'),
argv = process.argv.slice(2);

// this file is mainly just an example of usage

if(argv[0] === 'help') {
return help(argv[1] || path.join(__dirname, '../docs/pkgrc.md'));
}

// test with nopt options
var noptions = require('../examples/nopt/nopt'),
opts = Object.keys(noptions.opts),
Expand Down

0 comments on commit fff228f

Please sign in to comment.