Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Commit 607a8d5

Browse files
committed
fix cli options
1 parent 91cbbb9 commit 607a8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luapack.yue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ cli = (arguments) ->
226226
options = {}
227227
for arg in *arguments
228228
continue if "-" != arg::sub 1, 1
229-
operator, name = arg::match "^(%w+)-([%w-]+)$"
229+
operator, name = arg::match "^-(%w+)-([%w-]+)$"
230230
continue if operator != "yes" and operator != "no"
231231
name = name::gsub "-", "_"
232232
options[name] = operator == "yes"

0 commit comments

Comments
 (0)