Difference between revisions of "Shell.clearAlias"

From ComputerCraft Wiki
Jump to: navigation, search
m (Category operation: +Category:API_Functions)
(shell.clearAlias only requires, and only accepts the alias to clear)
 
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")
 
  }}
 
  }}
  

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.