aboutsummaryrefslogtreecommitdiffstats
path: root/todo.go
diff options
context:
space:
mode:
Diffstat (limited to 'todo.go')
-rw-r--r--todo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/todo.go b/todo.go
index 2a45f28..f7d994d 100644
--- a/todo.go
+++ b/todo.go
@@ -110,6 +110,10 @@ func usage() {
func routeInput(command string, input string) {
app := todolist.NewApp()
+ if app == nil {
+ return
+ }
+
switch command {
case "l", "list", "agenda":
app.ListTodos(input)