(self, shell, name, cmd)
| 131 | blacklist = {'cd','popd','pushd','dhist','alias','unalias'} |
| 132 | |
| 133 | def __init__(self, shell, name, cmd): |
| 134 | self.shell = shell |
| 135 | self.name = name |
| 136 | self.cmd = cmd |
| 137 | self.__doc__ = "Alias for `!{}`".format(cmd) |
| 138 | self.nargs = self.validate() |
| 139 | |
| 140 | def validate(self): |
| 141 | """Validate the alias, and return the number of arguments.""" |