Difference between revisions of "Shell.clearAlias"

From ComputerCraft Wiki
Jump to: navigation, search
(Added function page)
 
(shell.clearAlias only requires, and only accepts the alias to clear)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Function
 
{{Function
 
  |name=shell.clearAlias
 
  |name=shell.clearAlias
  |args= {{type|string}} alias, {{type|string}} program
+
  |args= {{type|string}} alias
 
  |api=shell
 
  |api=shell
 
  |returns=[[nil]]
 
  |returns=[[nil]]
Line 7: Line 7:
 
  |desc=Clears an alias.
 
  |desc=Clears an alias.
 
  |examples={{Example
 
  |examples={{Example
  |desc=Clears the alias "start" for program "startup".
+
  |desc=Clears the alias "start".
  |code=shell.clearAlias("start", "startup")
+
  |code=shell.clearAlias("start")
 
  }}
 
  }}
  
 
  |notes=
 
  |notes=
* It does not output anything, it just sets the alias.
+
* It does not output anything, it just clears the alias.
 
  }}
 
  }}
 +
 +
[[Category:API_Functions]]

Latest revision as of 15:28, 29 June 2013

Grid Redstone.png  Function shell.clearAlias
Clears an alias.
Syntax shell.clearAlias(string alias)
Returns nil
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Clears the alias "start".
Code
shell.clearAlias("start")

Additional Notes

  • It does not output anything, it just clears the alias.