Skip to content

Commit e194f12

Browse files
fix options not working for cli
1 parent 2883f55 commit e194f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function main() {
99
_DO_NOT_USE_cli: true
1010
}
1111
for (const opt of definedOptions) {
12-
if (!DEFAULT_OPTIONS_KEYS.includes(opt)) {
12+
if (!DEFAULT_OPTIONS_KEYS.includes(opt.replace('--', ''))) {
1313
console.error(`Option ${opt} is not a valid option.`)
1414
return
1515
}

0 commit comments

Comments
 (0)