Skip to content

Commit eb0694a

Browse files
committed
Fix stupid flag parsing bug
1 parent 8a2f092 commit eb0694a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoBuild.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function build_tarballs(ARGS, src_name, src_version, sources, script,
9191

9292
function extract_flag(flag, val = nothing)
9393
for f in ARGS
94-
if startswith(f, flag)
94+
if f == flag || startswith(f, string(flag, "="))
9595
# Check if it's just `--flag` or if it's `--flag=foo`
9696
if f != flag
9797
val = split(f, '=')[2]

0 commit comments

Comments
 (0)