Describe the bug
Since wp-cli/wp-cli#6174, WP_CLI_List_Command generates a warning when registered because it has an argument named --user which overrides the global --user arguments.
To Reproduce
Steps to reproduce the behavior:
- Install
wp-cli/wp-cli-bundle:dev-main
- Install Simple History
- Run
./vendor/bin/wp
- See error
Expected behavior
I'd expect there to be no warnings.
I have WP-CLI commands which run whenever I edit a file, so my dev logs have been completely taken over by these warnings ;_;
Screenshots
Warning: The `simple-history event list` command is registering an argument '--user' that conflicts with a global argument of the same name.
Warning: The `simple-history list` command is registering an argument '--user' that conflicts with a global argument of the same name.
System information (please complete the following information):
- WordPress version: 6.9.1
- PHP version: 8.2
- Installed plugins: Many, epic and private.
Describe the bug
Since wp-cli/wp-cli#6174,
WP_CLI_List_Commandgenerates a warning when registered because it has an argument named--userwhich overrides the global--userarguments.To Reproduce
Steps to reproduce the behavior:
wp-cli/wp-cli-bundle:dev-main./vendor/bin/wpExpected behavior
I'd expect there to be no warnings.
I have WP-CLI commands which run whenever I edit a file, so my dev logs have been completely taken over by these warnings ;_;
Screenshots
System information (please complete the following information):