Skip to content

Commit

Permalink
小修改
Browse files Browse the repository at this point in the history
  • Loading branch information
hexadecimal233 committed Feb 6, 2022
1 parent d0cb7fb commit b7d1c42
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js",
"args": ["--@j*9"],
"args": ["--dbg"],

}
]
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}

Expand Down

0 comments on commit b7d1c42

Please sign in to comment.