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']; } }