From 7ebbc8e29028594ab095b6f60b5b5514dc220dab Mon Sep 17 00:00:00 2001 From: skyblue Date: Sat, 7 Jun 2014 19:12:54 +0800 Subject: [PATCH] Update maker.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 option 设置无效 --- lib/maker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/maker.js b/lib/maker.js index f9bbd95..b433cef 100755 --- a/lib/maker.js +++ b/lib/maker.js @@ -12,8 +12,8 @@ var program = require('commander') program .version(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version) .usage('[debug] [options] [files]') - .option('-i --icon', '1024X1024的icon文件,默认为当前文件夹下的icon.png') - .option('-o --output', '要输出的目录,默认为当前文件夹') + .option('-i, --icon ', '1024X1024的icon文件,默认为当前文件夹下的icon.png') + .option('-o, --output ', '要输出的目录,默认为当前文件夹') .parse(process.argv); program.name = 'ios-icon'; @@ -31,4 +31,4 @@ var contents = path.join(output, "Contents.json"); ios_icon.make({ output: output, originIcon: icon -}); \ No newline at end of file +});