mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
add error on conflicting args
This commit is contained in:
parent
4a5d480acc
commit
813ed8af1b
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ export const watch = process.argv.includes("--watch");
|
||||||
export const IS_DEV = watch || process.argv.includes("--dev");
|
export const IS_DEV = watch || process.argv.includes("--dev");
|
||||||
export const IS_REPORTER = process.argv.includes("--reporter");
|
export const IS_REPORTER = process.argv.includes("--reporter");
|
||||||
export const IS_STANDALONE = process.argv.includes("--standalone");
|
export const IS_STANDALONE = process.argv.includes("--standalone");
|
||||||
export const IS_COMPANION_TEST = process.argv.includes("--companion-test");
|
export const IS_COMPANION_TEST = IS_REPORTER && process.argv.includes("--companion-test");
|
||||||
|
if (!IS_COMPANION_TEST && process.argv.includes("--companion-test"))
|
||||||
|
console.error("--companion-test must be run with --reporter for any effect");
|
||||||
|
|
||||||
export const IS_UPDATER_DISABLED = process.argv.includes("--disable-updater");
|
export const IS_UPDATER_DISABLED = process.argv.includes("--disable-updater");
|
||||||
export const gitHash = process.env.VENCORD_HASH || execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim();
|
export const gitHash = process.env.VENCORD_HASH || execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim();
|
||||||
|
|
Loading…
Reference in a new issue