symplify icon indicating copy to clipboard operation
symplify copied to clipboard

[ConfigTransformer] "An option with shortcut "n" already exists."

Open bchatard opened this issue 1 year ago • 2 comments

Hi,

I try to use config-transformer package (11.1.2) on a new project, but the command return the error: An option with shortcut "n" already exists. I try previous version, 11.0.9, and it works fine.

I guess there is a conflict with default -n option for no-interaction.

Stack: PHP: 8.1.9 Symfony: ^6.1 Composer: 2.3.10 Symfony CLI: 5.4.12

bchatard avatar Aug 10 '22 10:08 bchatard

Hi,

Thanks for reporting :+1: I didn't know there is a default option for --no-interaction. Could you send a fix PR to restore it?

TomasVotruba avatar Aug 10 '22 11:08 TomasVotruba

The default -n shortcut come from Console package itself. If I understand well Symfony behavior, the default options are set in \Symfony\Component\Console\Application::getDefaultInputDefinition then merged with options from command.

bchatard avatar Aug 10 '22 11:08 bchatard