diff --git a/bin/htmlhint b/bin/htmlhint
index 6a73ea68d..1dd153bdd 100644
--- a/bin/htmlhint
+++ b/bin/htmlhint
@@ -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');
@@ -26,7 +27,7 @@ program.on('--help', function(){
});
program
- .version('0.9.4')
+ .version(pkg.version)
.usage('[options] ')
.option('-l, --list', 'show all of the rules available.')
.option('-c, --config ', 'custom configuration file.')