Difference between revisions of "Help.setPath"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
(Update description and use type template)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=help.setPath
 
|name=help.setPath
|args=[[string (type)|string]] path
+
|args={{Type|string}} path
 
|api=help
 
|api=help
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Sets a new path for the help API
+
|desc=Returns the list of locations the API will look in for help files. This should be a string containing one or more search paths separated by colons.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Sets the path of the help API to /disk/help
+
|desc=Sets the search path of the help API to /disk/help.
 
|code=help.setPath("/disk/help")
 
|code=help.setPath("/disk/help")
 
}}
 
}}

Revision as of 19:53, 23 April 2013


Grid Redstone.png  Function help.setPath
Returns the list of locations the API will look in for help files. This should be a string containing one or more search paths separated by colons.
Syntax help.setPath(string path)
Returns nil
Part of ComputerCraft
API help

Examples

Grid paper.png  Example
Sets the search path of the help API to /disk/help.
Code
help.setPath("/disk/help")