src/Viserio/Component/Console/Command/StringCommand.php
public function descriptions(string $description, array $argumentAndOptionDescriptions = []): self
    {
        $definition = $this->getDefinition();

        $this->setDescription($description);

        foreach ($argumentAndOptionDescriptions as $name => $value) {
            if (\mb_strpos($name, '--') === 0) {
                $argument = $definition->getOption(\mb_substr($name, 2));

                if ($argument instanceof InputOption) {
                    $argument->setDescription($value);
                }
            } else {
                $argument = $definition->getArgument($name);

                if ($argument instanceof InputArgument) {
                    $argument->setDescription($value);
                }
            }
        }

        return $this;
    }
public function descriptions(string $description, array $argumentAndOptionDescriptions = []): self
    {
        $definition = $this->getDefinition();

        $this->setDescription($description);

        foreach ($argumentAndOptionDescriptions as $name => $value) {
            if (\mb_strpos($name, '--') === 0) {
                $argument = $definition->getOption(\mb_substr($name, 2));

                if ($argument instanceof InputOption) {
                    $argument->setDescription($value);
                }
            } else {
                $argument = $definition->getArgument($name);

                if ($argument instanceof InputArgument) {
                    $argument->setDescription($value);
                }
            }
        }

        return $this;
    }
Define descriptions for the command and it's arguments/options.

@param string $description                   description of the command
@param array  $argumentAndOptionDescriptions descriptions of the arguments and options

@return $this