111
This commit is contained in:
parent
8f13c1231a
commit
6f9cd2d21a
4
index.js
4
index.js
@ -16,6 +16,10 @@ let apiEndpoint = 'https://oss.x-php.com/alist/link';
|
||||
|
||||
// 解析命令行参数
|
||||
args.forEach(arg => {
|
||||
// 去掉--
|
||||
if (arg.startsWith('--')) {
|
||||
arg = arg.substring(2);
|
||||
}
|
||||
const [key, value] = arg.split('=');
|
||||
if (key === 'port') {
|
||||
port = parseInt(value, 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user