Skip to content

Commit

Permalink
Merge pull request #22 from lijinma/master
Browse files Browse the repository at this point in the history
- auto get version from package.json
  • Loading branch information
yaniswang committed Apr 13, 2014
2 parents de601e7 + aac3544 commit 1b7f9ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/htmlhint
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
var program = require('commander'),
fs = require('fs'),
path = require('path'),
HTMLHint = require("../index").HTMLHint;
HTMLHint = require("../index").HTMLHint,
pkg = require('../package.json');

require('colors');

Expand All @@ -26,7 +27,7 @@ program.on('--help', function(){
});

program
.version('0.9.4')
.version(pkg.version)
.usage('[options] <file ...>')
.option('-l, --list', 'show all of the rules available.')
.option('-c, --config <file>', 'custom configuration file.')
Expand Down

0 comments on commit 1b7f9ca

Please sign in to comment.