symplify
symplify copied to clipboard
[ConfigTransformer] "An option with shortcut "n" already exists."
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
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?
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.