Skip to content

rabbitmq:delete command throws exception "The "messages" option does not exist." #668

@alekseideviatov

Description

@alekseideviatov

php-amqplib/rabbitmq-bundle: 2.10.0

bin/console rabbitmq:delete throws InvalidArgumentException The "messages" option does not exist.

It's because this command extended from BaseConsumerCommand, that has this code:

protected function initialize(InputInterface $input, OutputInterface $output)
    {
        $this->amount = (int)$input->getOption('messages');
        if (0 > $this->amount) {
            throw new \InvalidArgumentException("The -m option should be null or greater than 0");
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions