help.completeTopic

From ComputerCraft
Jump to: navigation, search

help.completeTopic
Function
Syntax
help.completeTopic()
Returns table
API Help
Source CC:Tweaked

Returns a list of topic endings that match the prefix. Can be used with read to allow input of a help topic.

ExampleExampleComplete "hello" topic
Should print "hello".
Code
print("hell"..help.completeTopic("hell")[1])
Output hello