updated the help message format

main
Jesse Laprade 2020-05-27 13:13:13 -04:00
parent d81be7d605
commit 28c5477eb7
1 changed files with 48 additions and 47 deletions

View File

@ -7,52 +7,53 @@
(define (indent string)
(string-append "\t" string))
(define tab-full "\t")
(define tab-half " ")
(define newline "\n")
(define newline-double "\n\n")
(define messages
(hash 'show-help (string-append
(hash
'show-help
(string-append
"NAME" newline
"====" newline
(format "~a" config:program-name) newline-double
tab-half (format "~a" config:program-name) newline-double
"DESCRIPTION" newline
"===========" newline
(format "~a is a todo-list program for the command line. ~a does not use any data formats, and cannot remove multiple items at once." config:program-name config:program-name) newline-double
tab-half (format "~a is a todo-list program for the command line. ~a does not use any data formats, and cannot remove multiple items at once." config:program-name config:program-name) newline-double
"USAGE SYNTAX" newline
"============" newline
(format "~a [command] <args>" config:program-name) newline-double
tab-half (format "~a [command] <args>" config:program-name) newline-double
"COMMANDS AVAILABLE" newline
"==================" newline
(car config:initialize-commands) " - " (format "Creates a list file located at ~a" config:list-file) newline-double
tab-half (car config:initialize-commands) newline
tab-full (format "Creates a list file located at ~a" config:list-file) newline-double
(car config:list-commands) " - " "Displays items from your list" newline-double
tab-half (car config:list-commands) newline
tab-full "Displays items from your list" newline-double
(car config:add-commands) " <args> - Adds an item to your list" newline-double
tab-half (car config:add-commands) " <args>" newline
tab-full "Adds an item to your list" newline-double
(car config:remove-commands) " <args> - Removes an item from your list" newline-double
tab-half (car config:remove-commands) " <args>" newline
tab-full "Removes an item from your list" newline-double
"USAGE EXAMPLES" newline
"==============" newline
(car config:initialize-commands) " usage:" newline
(format "~a ~a" config:program-name (car config:initialize-commands)) newline-double
tab-half (car config:initialize-commands) newline
tab-full (format "~a ~a" config:program-name (car config:initialize-commands)) newline-double
(car config:list-commands) " usage:" newline
(format "~a ~a" config:program-name (car config:list-commands)) newline-double
tab-half (car config:list-commands) newline
tab-full (format "~a ~a" config:program-name (car config:list-commands)) newline-double
(car config:add-commands) " usage:" newline
(format "~a ~a this is an item without double quotation marks" config:program-name (car config:add-commands)) newline
(format "~a ~a \"this is an item surrounded by double quotation marks\"" config:program-name (car config:add-commands)) newline-double
tab-half (car config:add-commands) newline
tab-full (format "~a ~a this is an item without double quotation marks" config:program-name (car config:add-commands)) newline
tab-full (format "~a ~a \"this is an item surrounded by double quotation marks\"" config:program-name (car config:add-commands)) newline-double
(car config:remove-commands) " usage:" newline
(format "~a ~a 2" config:program-name (car config:remove-commands)) newline-double
tab-half (car config:remove-commands) newline
tab-full (format "~a ~a 2" config:program-name (car config:remove-commands)) newline-double
"Can't see the whole help message?" newline
"=================================" newline
"Try running the command below:" newline
(format "~a ~a | less" config:program-name (car config:help-commands)) newline)
"If you can't see the whole help message, then try running the following command: " newline
tab-half (format "~a ~a | less" config:program-name (car config:help-commands)) newline)
'empty-list "> There is nothing in your list\n"