Archived
1
0

Enforce strict equals

This commit is contained in:
Asher
2020-08-04 15:08:45 -05:00
parent 8590f80c31
commit 150d37868a
2 changed files with 3 additions and 2 deletions

View File

@ -172,7 +172,7 @@ export const parse = (
const arg = argv[i]
// -- signals the end of option parsing.
if (!ended && arg == "--") {
if (!ended && arg === "--") {
ended = true
continue
}
@ -220,7 +220,7 @@ export const parse = (
throw error(`--${key} requires a value`)
}
if (option.type == OptionalString && value == "false") {
if (option.type === OptionalString && value === "false") {
continue
}