diff --git a/lib/common.go b/lib/common.go index 6b4c02a..8f69cd3 100644 --- a/lib/common.go +++ b/lib/common.go @@ -99,7 +99,7 @@ func ContainsCommand(s, prefix, cmd string) bool { return false } -func SplitCommandAndArgs(s, prefix string) (cmd string, args []string) { +func SplitCommandAndArg(s, prefix string) (cmd string, args []string) { s = strings.TrimSpace(s) if !strings.HasPrefix(s, prefix) {