From a0f7203996439210b2a40663eeeeb8563ab03d68 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Mon, 25 Apr 2016 14:35:43 -0400 Subject: Get grouping working correctly --- todo.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'todo.go') diff --git a/todo.go b/todo.go index 5b62254..c6bd052 100644 --- a/todo.go +++ b/todo.go @@ -13,19 +13,18 @@ func main() { usage() os.Exit(0) } - routeInput(os.Args[1]) + input := strings.Join(os.Args[1:], " ") + routeInput(os.Args[1], input) } func usage() { fmt.Println("usage") } -func routeInput(command string) { +func routeInput(command string, input string) { app := todolist.NewApp() - input := strings.Join(os.Args[1:], " ") switch { case command == "l" || command == "list": app.ListTodos(input) } - } -- cgit v1.3