Add a command line argument.

@param string $argument The argument to add.

@return TensideJsonConfig
550189
public function addCommandLineArgument($argument)
    {
        $args = (array) $this->getPhpCliArguments();
        $this->setPhpCliArguments(array_merge($args, [$argument]));

        return $this;
    }
508769
public function setArguments($arguments)
    {
        foreach ($arguments as $name => $argument) {
            $this->setArgument($name, $argument);
        }

        return $this;
    }
404559
public function more($column, $argument)
    {
        $this->conditions = [$this->grammar->buildId($column) . ' > ' . $argument];

        return $this;
    }
1032629
public function addArguments(array $arguments): Service
    {
        $this->arguments = array_replace($this->arguments ?? [], $arguments);

        return $this;
    }
389869
public function removeArgument(Argument $argument)
    {
        $key = array_search($argument, $this->arguments, true);

        unset($this->arguments[$key]);

        return $this;
    }
66057
public function setupSupportedArgs($arguments = [])
    {
        $defaults = [
            'help' => 'The help menu',
        ];

        $arguments = array_merge($defaults, $arguments);

        $this->supportedArgs = $arguments;

        return $this;
    }
1336614
public function addArgument($name, Argument $arg = null) {
        if (isset($this->configOpts[$name]) || isset($this->configArgs[$name])) {
            throw new ConfigException('option/argument already set: ' . $name);
        }

        if (is_null($arg)) {
            $arg = new Argument();
        }

        $this->configArgs[$name] = $arg;
        return $arg;
    }
280435
private function getMethodArgument($argument)
    {
        $arg = '__unknown__';
        if ($argument instanceof PyStringNode) {
            $arg = 'PyStringNode $string';
        } elseif ($argument instanceof TableNode) {
            $arg = 'TableNode $table';
        }

        return $arg;
    }
181377
protected function escapeArgument($argument) : string
    {
        if (is_array($argument)) {
            $argument = array_map('escapeshellarg', $argument);
            $escaped  = implode(' ', $argument);
        } else {
            $escaped = escapeshellarg($argument);
        }
        return $escaped;
    }
265906
public function setArguments(array $arguments)
    {
    	foreach ($arguments as $k => $v) {
    		$this->arguments[$k] = $v;
    	}
        
        return $this;
    }
1175142
public function removeArguments(array $arguments = null)
  {
    $this->arguments = array();

    if ($arguments) {
      $this->addArguments($arguments);
    }

    return $this;
  }
398713
public function setArgument(Argument $arg)
    {
        if ($this->mode == Getopt::NO_ARGUMENT) {
            throw new \InvalidArgumentException("Option should not have any argument");
        }
        $this->argument = $arg;
        return $this;
    }
1202060
public static function create(...$arguments)
    {
        trigger_error(__METHOD__.'() has been deprecated and will be removed from v2.', E_USER_DEPRECATED);

        if (isset($arguments[0]) && is_string($arguments[0])) {
            return new static([], $arguments[0], $arguments[1] ?? []);
        }

        return new static(...$arguments);
    }
587911
private function processArguments(array $arguments)
    {
        foreach ($arguments as $k => $argument) {
            if (is_array($argument)) {
                $arguments[$k] = $this->processArguments($argument);
            } elseif ($argument instanceof Reference) {
                $defId = $this->getDefinitionId($id = (string) $argument);

                if ($defId !== $id) {
                    $arguments[$k] = new Reference($defId, $argument->getInvalidBehavior());
                }
            }
        }

        return $arguments;
    }
57041
protected function createInputFromArguments(array $arguments)
    {
        return tap(new ArrayInput(array_merge($this->context(), $arguments)), function ($input) {
            if ($input->hasParameterOption(['--no-interaction'], true)) {
                $input->setInteractive(false);
            }
        });
    }
727901
public function prependArgument($argument) {
    if (is_scalar($argument)) {
      $argument = Node::fromValue($argument);
    }

    if ($argument instanceof ExpressionNode) {
      /** @var Node $argument */
      $this->arguments->prependItem($argument);
    }
    else {
      throw new \InvalidArgumentException();
    }

    return $this;
  }
1049312
public function setArgument($num, $argument)
  {
    $this->arguments[$num] = $argument;

    $this->sortArguments();

    return $this;
  }