Difference between revisions of "Help (API)"
From ComputerCraft Wiki
Smiley43210 (Talk | contribs) (Removed unnecessary duplicate table code on bottom) |
(use API table template) |
||
Line 1: | Line 1: | ||
The Help API allows you to mess around with the help files. | The Help API allows you to mess around with the help files. | ||
− | + | {{API table|Help|image=Grid disk.png|2= | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | {{API table/row | |
+ | |[[help.path]]()|{{Type|string}} path | ||
+ | |Returns the list of locations the API will look in for help files. | ||
+ | |odd}} | ||
− | + | {{API table/row | |
− | + | |[[help.setPath]]({{type|string}} path)|{{Type|nil}} | |
− | + | |Sets the list of locations the API will look in for help files. | |
+ | |}} | ||
− | + | {{API table/row | |
− | + | |[[help.lookup]]({{Type|string}} topic)|{{Type|string}}/{{type|nil}} path | |
− | + | |Returns the path to the file containing the help page for <var>topic</var>, or {{type|nil}} if the topic cannot be found. | |
+ | |odd}} | ||
− | + | {{API table/row | |
− | + | |[[help.topics]]()|{{Type|table}} topics | |
− | + | |Returns a list of all available help topics. | |
+ | |}} | ||
− | + | }} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:APIs]] | [[Category:APIs]] |
Revision as of 21:33, 14 September 2013
The Help API allows you to mess around with the help files.
Help (API) | ||
---|---|---|
Function | Return values | Description |
help.path() | string path | Returns the list of locations the API will look in for help files. |
help.setPath(string path) | nil | Sets the list of locations the API will look in for help files. |
help.lookup(string topic) | string/nil path | Returns the path to the file containing the help page for topic, or nil if the topic cannot be found. |
help.topics() | table topics | Returns a list of all available help topics. |