public function rename($new, $old = null)
    {
        $this->arguments[] = 'rename';
        if ($old) {
            $this->arguments[] = $old;
        }
        $this->arguments[] = $new;
        return $this;
    }
public function rename($new, $old = null)
    {
        $this->arguments[] = 'rename';
        if ($old) {
            $this->arguments[] = $old;
        }
        $this->arguments[] = $new;
        return $this;
    }
public function rename ( $ new , $ old = null ) { $ this -> arguments [ ] = 'rename' ; if ( $ old ) { $ this -> arguments [ ] = $ old ; } $ this -> arguments [ ] = $ new ; return $ this ; }
Add the rename option to the command line.

@param string      $new The new name.

@param null|string $old The old name.

@return RemoteCommandBuilder
Add the rename option to the command line .