It can also register a slash command for you such that your function gets called with such a table instead of a string.
The intent is that this will allow addon developers to add simple flag options to their slash commands without having to reinvent that particular wheel.
The only thing you can do with this without adding it to another addon is "/getopt -d 2" to set debugging on... You can also pass other words to it to see how the quoting works.
I finally fixed the quoting so it handles backslashes and quotes in the middle of words and everything else correctly. Want that? Library.LibGetOpt.dequote(string) yields a table of the words in string, respecting quoting conventions.
* Various fixes
* Support for multiply-specified options
* TOC update.
* ToC update
* change way printf is used
* Make leftover_full available for the full text (including quotes and backslashes) of any unused material.