Difference between revisions of "Shell.clearAlias"

From ComputerCraft Wiki
Jump to: navigation, search
m (I should really check the notes before saving...)
(shell.clearAlias only requires, and only accepts the alias to clear)
 
(One intermediate revision by one other user 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")
 
  }}
 
  }}
  
Line 14: Line 14:
 
* It does not output anything, it just clears 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.