This commit is contained in:
Joe Previte
2021-10-04 15:04:07 -07:00
parent e588f8b0b0
commit 45319ec648
2 changed files with 12 additions and 2 deletions

View File

@@ -310,12 +310,10 @@ 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")
}