It does exactly what it says on the tin; creates a /print command.
/print takes any Lua expression and tries to print it. Expressions are evaluated. You can do stuff like /print a, b and it will print both values. Functions are called. Tables are dumped recursively. Use it to take notes, record numbers, do math! Impress your friends! Terrify your enemies! Discover that global wwwwwww12312312313 is a nil value!
To give this some actual utility, I've added a "-d" option to limit depth; "/print -d 1 _G" is a lot less spammy than "/print _G".
Added an output cap of 1000 lines -- 1000 is arbitrary, but if you print a large enough table, you could crash the game. In practice, "more than the window could scroll" is probably useless. You can use the dump(table, value) function to populate a table with up to 10k lines of output if you want to display them some other way.
WARNING: This includes a newer version of libgetopt than my other addons use. It shouldn't matter, but if stuff suddenly breaks, back out to an older version of SlashPrint and let me know.
Thanks to a person in #riftui, SlashPrint now avoids printing recursive references indefinitely, and can be used for _G!
Added -d # option for depth limit, improved output for stuff like already-visited tables.
Added -m # option for cap to items-per-table to display.
* ToC update
* Rework of printf() implementation.
* Now color-coded!
* Upgraded LibGetOpt, no longer has problems with double quotes on the command line.