diff --git a/src/node/cli.ts b/src/node/cli.ts index fe9b3fc13..b3f4a820a 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -310,10 +310,12 @@ export const parse = ( throw error(`Unknown option ${arg}`) } + // TODO@jsjoeio add test for this if block if (key === "password" && !opts?.configFile) { throw new Error("--password can only be set in the config file or passed in via $PASSWORD") } + // TODO@jsjoeio add test for this if block if (key === "hashed-password" && !opts?.configFile) { throw new Error("--hashed-password can only be set in the config file or passed in via $HASHED_PASSWORD") }