fixed bug that prevented user from adding long strings. turns out it was just a wrapper problem. changed an error message to a nicer message

main
m455 2018-04-17 22:58:33 -04:00
parent 87b3851e0f
commit c0c817206e
2 changed files with 7 additions and 5 deletions

View File

@ -12,16 +12,18 @@
(let
([args-length (vector-length args)])
(cond
[(equal? args-length 0)
(d-hash-ref messages 'show-usage)]
[(and
(equal? args-length 1)
(equal? (vector-member list-command args) 0))
(show-list)]
[(and
(equal? (vector-ref args 0) add-command)
(equal? (vector-member add-command args) 0))
(add-item args)
(cdr (vector->list args))]
(equal? args-length 2)
(equal? (vector-ref args 0) add-command))
(add-item args)]
[(and
(equal? args-length 2)

View File

@ -40,7 +40,7 @@
"\x09number corresponds to which item to remove it.\n")
'empty-todo-list
"Error > There is nothing in your list \n"
"> There is nothing in your list \n"
'show-usage
(string-append