diff --git a/cmd/edit.go b/cmd/edit.go index bccd3413..f10692c1 100644 --- a/cmd/edit.go +++ b/cmd/edit.go @@ -41,6 +41,10 @@ func init() { Long: longDesc, Short: editCmdDesc, Run: func(cmd *cobra.Command, args []string) { + if len(args) <= 0 { + fmt.Print("edit needs arguments. See ultralist e[dit] -h.\n") + return + } todoID, err := strconv.Atoi(args[0]) if err != nil { fmt.Printf("Could not parse todo ID: '%s'\n", args[0])