Skip to content

Warnings about WP_CLI_List_Command overriding global argument #629

Description

@stefanfisk

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:

  1. Install wp-cli/wp-cli-bundle:dev-main
  2. Install Simple History
  3. Run ./vendor/bin/wp
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions