diff --git a/lexicon b/lexicon index d0c8235..ce7acc1 100755 --- a/lexicon +++ b/lexicon @@ -27,19 +27,40 @@ if arg[1] == "h" or arg[1] == "help" or arg[1] == "how" or arg[1] == "howdo" then - print([[all - shows all words in heonian. -search - searches all words and shows only those that return to string.find() -transcript - transcripts the word to heonian script - ]]) + print([[ + +[a]ll + - shows all words in heonian. + +[h]elp + - shows this message + +[s]earch + - searches all words and shows only those that return to string.find() + +[tr]anscript + - transcripts the word to heonian script + +Parameters: +-h / --help (shows what does the command do) +-a / --all (shows more info on the word, if any) +-v / --verbose (shows the transcription process) +-c / --copy (copies transcription to keyboard) +]]) return end if arg[1] == "a" or arg[1] == "all" then if please_help then - print("all\n\tshows all words in heonian") + print([[ + +[a]ll + - shows all words in heonian. + +Parameters: +-h / --help (shows what does the command do) +-a / --all (shows more info on the word, if any) +]]) else showList() end @@ -48,7 +69,15 @@ end if arg[1] == "s" or arg[1] == "search" then if please_help then - print("search \n\tsearches all words and shows only those that return to string.find()") + print([[ + +[s]earch + - searches all words and shows only those that return to string.find() + +Parameters: +-h / --help (shows what does the command do) +-a / --all (shows more info on the word, if any) +]]) else if arg[2] then searchList(arg[2]) else print("no query to search") end @@ -58,7 +87,16 @@ end if arg[1] == "tr" or arg[1] == "transcript" then if please_help then - print("transcript \n\ttranscripts the word to heonian script") + print([[ + +[tr]anscript + - transcripts the word to heonian script + +Parameters: +-h / --help (shows what does the command do) +-v / --verbose (shows the transcription process) +-c / --copy (copies transcription to keyboard) +]]) else if arg[2] then print(convertToHeonian(arg[2])) else print("no string to transcript") end