src/Args.php
public function addArg($value, $index = null) {
        if ($index !== null) {
            $this->args[$index] = $value;
        } else {
            $this->args[] = $value;
        }
        return $this;
    }
public function addArg($value, $index = null) {
        if ($index !== null) {
            $this->args[$index] = $value;
        } else {
            $this->args[] = $value;
        }
        return $this;
    }
public function addArg ( $ value , $ index = null ) { if ( $ index !== null ) { $ this -> args [ $ index ] = $ value ; } else { $ this -> args [ ] = $ value ; } return $ this ; }
Add an argument to the args array.

@param string $value The argument to add.
@param string|null $index The index to add the arg at.
@return $this
Add an argument to the args array .