join all following arguments to a single query if an argument is provided
This commit is contained in:
+2
-1
@@ -126,7 +126,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(os.Args) > 1 {
|
if len(os.Args) > 1 {
|
||||||
options = append(options, fuzzyfinder.WithQuery(os.Args[1]))
|
query := strings.Join(os.Args[1:], " ")
|
||||||
|
options = append(options, fuzzyfinder.WithQuery(query))
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := fuzzyfinder.Find(
|
i, err := fuzzyfinder.Find(
|
||||||
|
|||||||
Reference in New Issue
Block a user