diff --git a/main.go b/main.go index a46ad77..0c58dce 100644 --- a/main.go +++ b/main.go @@ -208,8 +208,12 @@ func main() { } println("\nI don't know how to open a", command[1]+"!") + case "": + println("\n What do you want me to do? ") + break default: + println("\nI don't know how to '", command[0], "'\n") } @@ -237,5 +241,9 @@ func main() { quit = true } } + /*Clear the commands in case the user just presses "enter"*/ + + command[0] = "" + command[1] = "" } }