Skip to content

Commit

Permalink
fix: 修复install基本版本号显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
neo committed Aug 30, 2019
1 parent e3afeba commit ad41410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

const iosDevice = require('node-ios-device');
const program = require('commander');
const packageJson = require('../package.json');

program.version("1.0.0")
program.version(packageJson.version)
.option('-a, --app <path>', 'the path of app.')
.option('--debug', 'enable debugger')
.parse(process.argv);
Expand Down Expand Up @@ -42,4 +43,4 @@ function install(path) {

if (program.app) {
install(program.app);
}
}

0 comments on commit ad41410

Please sign in to comment.