Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@JakeFr

Description

@JakeFr
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.