From c39e7a131abd59420ddf7303123c274dc1299a58 Mon Sep 17 00:00:00 2001 From: ZTStory Date: Wed, 24 Nov 2021 16:05:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(commander=20options):=20-w=20=E2=80=94watch?= =?UTF-8?q?=20not=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/index | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/index b/bin/index index 5d5aa818..e21b0663 100755 --- a/bin/index +++ b/bin/index @@ -70,13 +70,13 @@ program ) .option('--error ', 'Whether to throw error.') .option('--empty ', 'Empty directory or not.') - .option('-f --fromId ', 'Scene value.') + .option('-f, --fromId ', 'Scene value.') .option('--platform ', 'The platform of alipay miniprogram.') - .option('-p --isReport ', 'Report or not.') - .option('-w --watch ', 'Watch code changes') - .option('-d --ignoreNpm ', 'ignore npm detection') - .option('-u --useRuntimeLog ', 'open runtime log') - .option('-l --libraryName ', 'custom npm name') + .option('-p, --isReport ', 'Report or not.') + .option('-w, --watch', 'Watch code changes') + .option('-d, --ignoreNpm ', 'ignore npm detection') + .option('-u, --useRuntimeLog ', 'open runtime log') + .option('-l, --libraryName ', 'custom npm name') .option('--useCompileLog ', 'open compile log') program.parse(process.argv)