public function update($groupOrRemote, $prune = false)
    {
        $this->arguments[] = 'update';
        if ($prune) {
            $this->arguments[] = '--prune';
        }
        $this->arguments[] = $groupOrRemote;
        return $this;
    }
public function update($groupOrRemote, $prune = false)
    {
        $this->arguments[] = 'update';
        if ($prune) {
            $this->arguments[] = '--prune';
        }
        $this->arguments[] = $groupOrRemote;
        return $this;
    }
public function update ( $ groupOrRemote , $ prune = false ) { $ this -> arguments [ ] = 'update' ; if ( $ prune ) { $ this -> arguments [ ] = '--prune' ; } $ this -> arguments [ ] = $ groupOrRemote ; return $ this ; }
Add the update option to the command line.

@param string $groupOrRemote Name of the remote or a remote group.

@param bool   $prune         Flag if the remote shall be pruned.

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