diff --git a/deploy.js b/deploy.js index 7f3c42e..5bda925 100644 --- a/deploy.js +++ b/deploy.js @@ -54,24 +54,24 @@ try { // 读取命令行参数 commander .version('1.0', '-v, --version') // 默认是 -V。如果要 -v,就要加 '-v --version' - .option('-f, --fromPath ', `local distribution path to copy from. Default to ${wo.envi.deploy.fromPath}`) - .option('-g, --gotoTarget ', `connection section in config. Default to ${wo.envi.deploy.gotoTarget}`) + .option('-f, --fromPath ', `local distribution path to copy from.`) + .option('-g, --gotoTarget ', `connection section in config.`) - .option('-t, --targetType ', `target type, git or ssh. Default to ${wo.envi.deploy.connection.targetType}`) + .option('-t, --targetType ', `target type, git or ssh.`) - .option('-H, --host ', `Host IP or domain name of the target server. Default to ${wo.envi.deploy.connection.host}`) - .option('-P, --port ', `Ssh port number of the target server. Default to ${wo.envi.deploy.connection.port}`) - .option('-b, --targetPath ', `Destination path to deploy on the target. Default to ${wo.envi.deploy.connection.targetPath}`) - .option('-d, --targetDir ', `Destination folder to deploy on the target. Default to ${wo.envi.deploy.connection.targetDir}`) + .option('-H, --host ', `Host IP or domain name of the target server.`) + .option('-P, --port ', `Ssh port number of the target server.`) + .option('-b, --targetPath ', `Destination path to deploy on the target.`) + .option('-d, --targetDir ', `Destination folder to deploy on the target.`) - .option('-r, --repo ', `git repo address. Default to ${wo.envi.deploy.connection.repo}`) - .option('-b, --branch ', `git repo branch. Default to ${wo.envi.deploy.connection.branch}`) - .option('-n, --gitname ', `git user name. Default to ${wo.envi.deploy.connection.gitname}`) - .option('-m, --gitemail ', `git user email. Default to ${wo.envi.deploy.connection.gitemail}`) + .option('-r, --repo ', `git repo address.`) + .option('-b, --branch ', `git repo branch.`) + .option('-n, --gitname ', `git user name.`) + .option('-m, --gitemail ', `git user email.`) - .option('-u, --user ', `User id to login the target server. Default to ${wo.envi.deploy.connection.user}`) - .option('-k, --key ', `User private key file to login the target server. Default to ${wo.envi.deploy.connection.key}`) - .option('-p, --password ', `User password to login the target server. You may have to enclose it in "". Default to "${wo.envi.deploy.connection.password}"`) + .option('-u, --user ', `User id to login the target server.`) + .option('-k, --key ', `User private key file to login the target server.`) + .option('-p, --password ', `User password to login the target server. You may have to enclose it in "".`) .parse(process.argv) wo.envi.deploy.fromPath = commander.fromPath || wo.envi.deploy.fromPath