diff --git a/parse-args.js b/parse-args.js index 550e332..fb0fc11 100644 --- a/parse-args.js +++ b/parse-args.js @@ -211,7 +211,7 @@ function yargsParser (argv, defaultNpm) { type: 'string', default: defaultNpm || 'npm' }) - .version() + .version(() => require('./package.json').version) .alias('version', 'v') .help() .alias('help', 'h')