Skip to content

Commit

Permalink
- auto get version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinma committed Apr 7, 2014
1 parent e200a41 commit aac3544
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 aac3544

Please sign in to comment.