Difference between revisions of "Help (API)"

From ComputerCraft Wiki
Jump to: navigation, search
m (moved HELP to Help (API))
Line 6: Line 6:
 
!style="background:#EEE" width="*"|Description
 
!style="background:#EEE" width="*"|Description
 
|-
 
|-
|help.setPath( path )
+
|[[help.path|path]]()
|<no description given>
+
|Returns the path the help api has been set to
 
|-
 
|-
|help.lookup( topic )
+
|[[help.setPath|setPath]]([[string (type)|string]] path )
|<no description given>
+
|Sets the path of the api to ''path''
 
|-
 
|-
|help.topics()
+
|[[help.lookup|lookup]]([[string (type)|string]] topic )
|<no description given>
+
|Looks up the help file for ''topic''
 +
|-
 +
|[[help.topics|topic]]()
 +
|Returns a table of valid help topics
 
|}
 
|}
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 03:56, 27 February 2012

The Help API allows you to mess around with the help files.

Its functions are:

Method name Description
path() Returns the path the help api has been set to
setPath(string path ) Sets the path of the api to path
lookup(string topic ) Looks up the help file for topic
topic() Returns a table of valid help topics