a separate scope for x := opt, part 2

pull/3009/head
Alexander Medvednikov 2019-12-08 00:45:42 +03:00
parent b26a0bde38
commit 7069cd6ab5
1 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ fn (table mut Table) parse_cflag(cflag string, mod string) ?bool {
index = i
}
}
if i2 := flag.index(',') {
if index == -1 || i2 < index {
index = i2
if i := flag.index(',') {
if index == -1 || i < index {
index = i
}
}
if index != -1 && flag[index] == ` ` && flag[index+1] == `-` {