From b7d1c42d19a1bf909b85f375f674102fc5f4f03a Mon Sep 17 00:00:00 2001 From: ThebestkillerTBK <62250232+ThebestkillerTBK@users.noreply.github.com> Date: Sun, 6 Feb 2022 23:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 2 +- index.js | 2 +- package.json | 4 ++-- utils.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5d61011..261f1bc 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "/**" ], "program": "${workspaceFolder}/index.js", - "args": ["--@j*9"], + "args": ["--dbg"], } ] diff --git a/index.js b/index.js index 0823f1a..10a9b0c 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const fs = require('fs'); //解析参数 var args = require('minimist')(process.argv.slice(2)); -debug = args['@j*9']; +debug = args['dbg']; //显示帮助 if (!args.i && !debug) { diff --git a/package.json b/package.json index 5813fd6..672bf81 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "bin":"index.js", "scripts": { - "run": "node index.js --@j*9", - "dist": "pkg . --targets node14-win-x64,node14-macos-x64,node14-linux-x64 -o ./dist/chongchong-free" + "run": "node index.js --dbg", + "build": "pkg . --targets node14-win-x64,node14-macos-x64,node14-linux-x64 -o ./dist/chongchong-free" } } diff --git a/utils.js b/utils.js index 82567ff..89b2f73 100644 --- a/utils.js +++ b/utils.js @@ -40,7 +40,7 @@ const utilities = { //是否详细输出 isDetailedOutput() { var args = require('minimist')(process.argv.slice(2)); - return args['d'] || args['@j*9']; + return args['d'] || args['dbg']; } }