diff --git a/index.js b/index.js index 19119da..762ff3e 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,9 @@ const program = require('commander'); const url = require('url'); const RedisClient = require('./lib/redis').RedisClient; +const version = require('./package.json').version; -program.version('1.1.2') +program.version(version) .usage("rdcli [OPTIONS] [cmd [arg [arg ...]]]") .option("-h, --host ", 'Server hostname (default: 127.0.0.1).') .option("-p, --port ", "Server port (default: 6379).", parseInt) diff --git a/package.json b/package.json index 36d8215..68a8125 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redis-cli", - "version": "1.1.2", + "version": "1.2.0", "description": "A Redis Cli Tool", "main": "index.js", "scripts": {