We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c7689 commit 0b6f597Copy full SHA for 0b6f597
src/cli.ts
@@ -10,14 +10,16 @@ async function main() {
10
}
11
for (const opt of definedOptions) {
12
if (!DEFAULT_OPTIONS_KEYS.includes(opt)) {
13
- throw `Option ${opt} is not a valid option.`
+ console.error(`Option ${opt} is not a valid option.`)
14
+ return
15
16
17
const index = process.argv.indexOf(opt)
18
const optionValue = process.argv[index + 1]
19
20
if (optionValue === undefined) {
- throw `Option ${opt} must have a value.`
21
+ console.error(`Option ${opt} must have a value.`)
22
23
24
25
const optionName = opt.slice(2)
0 commit comments