diff --git a/yes/yes.go b/yes/yes.go index 7340d7e..d135c7e 100644 --- a/yes/yes.go +++ b/yes/yes.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "strings" ) func yes(word string) { @@ -15,6 +16,7 @@ func main() { if len(os.Args) == 1 { yes("y") } else { - yes(os.Args[1]) + word := strings.Join(os.Args[1:], " ") + yes(word) } }