Adding if-condition for eq operator and empty compare value

pull/1517/head
Arjun Khunti 8 months ago committed by GitHub
parent 8d38c84713
commit 41e8ecc9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -143,7 +143,11 @@ func (t flagTestItem) findValue(s string) (match bool, value string, err error)
if strings.HasPrefix(t.Flag, "--") {
value = "true"
} else {
value = ""
if t.Compare.Op == "eq" {
value = ""
} else {
value = vals[1]
}
}
}
} else {

Loading…
Cancel
Save