a?
This commit is contained in:
parent
3104cacefd
commit
5883c95d82
@ -231,7 +231,7 @@ function main() {
|
|||||||
fs = require("fs");
|
fs = require("fs");
|
||||||
path = require("path");
|
path = require("path");
|
||||||
process = require("process");
|
process = require("process");
|
||||||
if (!("fight" in process.argv)) return [3 /*break*/, 2];
|
if (!(process.argv.length > 2 && process.argv[2] === "fight")) return [3 /*break*/, 2];
|
||||||
names_1 = fs.readFileSync(path.resolve(__dirname, "input.txt"), "utf-8");
|
names_1 = fs.readFileSync(path.resolve(__dirname, "input.txt"), "utf-8");
|
||||||
return [4 /*yield*/, fight_only(names_1)];
|
return [4 /*yield*/, fight_only(names_1)];
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -201,7 +201,7 @@ async function main() {
|
|||||||
const process = require("process");
|
const process = require("process");
|
||||||
// 读取 cli
|
// 读取 cli
|
||||||
// 有 fight 参数就开启 fight_only模式
|
// 有 fight 参数就开启 fight_only模式
|
||||||
if ("fight" in process.argv) {
|
if (process.argv.length > 2 && process.argv[2] === "fight") {
|
||||||
const names = fs.readFileSync(path.resolve(__dirname, "input.txt"), "utf-8");
|
const names = fs.readFileSync(path.resolve(__dirname, "input.txt"), "utf-8");
|
||||||
await fight_only(names);
|
await fight_only(names);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user