Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 8, 2011
1 parent aa37c50 commit 14f8d7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/dox
Expand Up @@ -8,10 +8,14 @@ var program = require('commander')
, util = require('util')
, dox = require('../');

// options

program
.version(dox.version)
.option('-D, --debug', 'output parsed comments for debugging');

// examples

program.on('--help', function(){
console.log(' Examples:');
console.log('');
Expand All @@ -23,8 +27,12 @@ program.on('--help', function(){
console.log('');
});

// parse argv

program.parse(process.argv);

// process stdin

var buf = '';
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk){ buf += chunk; });
Expand Down

0 comments on commit 14f8d7a

Please sign in to comment.