Skip to content

Commit 5a4c230

Browse files
authored
Merge pull request #187 from noritaka1166/refactor-code
2 parents 83adc87 + 2cffd14 commit 5a4c230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/common/parse-cli-args.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function parseCLIArgsCore (set, args) {
203203
set,
204204
arg.slice(1).split('').map(c => `-${c}`)
205205
)
206-
} else if (arg[0] === '-') {
206+
} else if (arg.startsWith('-')) {
207207
throw new Error(`Invalid Option: ${arg}`)
208208
} else {
209209
set.lastGroup.patterns.push(arg)

0 commit comments

Comments
 (0)