From eb0612864db125f124e09b53e58f0f70d9d9955e Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 22 Mar 2021 19:43:53 +0100 Subject: [PATCH] search: concat multiple arguments. Don't just use the first This is more natural --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 22a5e98..fb0ece1 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( "os" "path/filepath" "regexp" + "strings" _ "modernc.org/sqlite" ) @@ -152,7 +153,7 @@ func main() { if argslen < 2 { fmt.Fprint(os.Stderr, "Please provide the search query\n") } - q := args[1] + q := strings.Join(args[1:], " ") search(conn, q) os.Exit(23) } else if cmd == "init" {