Support non-global process

This commit is contained in:
Simon Sawicki
2025-09-25 17:31:13 +02:00
parent b904e70181
commit 7f0e9b267e

6
run.ts
View File

@@ -1,14 +1,14 @@
import { exit } from "node:process";
import { argv, exit } from "node:process";
import { readFileSync } from "node:fs";
import { isOneOf } from "./src/utils.ts";
import main from "./src/main.ts";
const args = process.argv.slice(2);
const args = argv.slice(2);
if (args.length < 2) {
console.error(
`ERROR: Missing argument\nusage: ${
process.argv[1]
argv[1]
} <player> [<type>:<request> ...]`,
);
exit(1);