...
This commit is contained in:
parent
db972f3442
commit
99b23c5c66
@ -241,20 +241,19 @@ func parse_args(args ...string) (delegate_to_rg bool, sanitized_args []string, k
|
|||||||
chars[i] = string(ch)
|
chars[i] = string(ch)
|
||||||
_, ok = alias_map[string(ch)]
|
_, ok = alias_map[string(ch)]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
sanitized_args = append(sanitized_args, x)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !ok {
|
if ok {
|
||||||
sanitized_args = append(sanitized_args, x)
|
for _, ch := range chars {
|
||||||
continue
|
target := alias_map[ch]
|
||||||
}
|
if options_that_expect_args[target] {
|
||||||
for _, ch := range chars {
|
expecting_option_arg = target
|
||||||
target := alias_map[ch]
|
} else {
|
||||||
if options_that_expect_args[target] {
|
handle_bool_option(target)
|
||||||
expecting_option_arg = target
|
sanitized_args = append(sanitized_args, "-"+ch)
|
||||||
} else {
|
}
|
||||||
handle_bool_option(target)
|
|
||||||
sanitized_args = append(sanitized_args, "-"+ch)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user