Skip to content

[Runtime] Command with "e" option fails #41658

Closed
@JakeFr

Description

@JakeFr

Symfony version(s) affected: 5.3

Description
In a standalone console application, one of the command defines an option with a shorcut "e".
With the runtime component, the command fails with the error message
An option with shortcut "e" already exists.

How to reproduce
Here a minimum code to reproduce
https://gist.github.com/JakeFr/8d3641ac2e7043dc3eba2a497da65494
Application and included commands work fine
./test.php
./test.php list
./test.php help
but the command returns the error
./test.php test
./test.php test -e
./test.php help test

Possible Solution
It looks related to
https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/Runtime/Runner/Symfony/ConsoleApplicationRunner.php#L48
This test doesn't detect the option

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions