Skip to content

[DX] [Console] InputInterface::hasOption is confusingly named #17597

@mcfedr

Description

@mcfedr

Now you probably just want to close this, because in many ways there isn't much that can be done at this stage.

But I find the hasOption method to be misleading, people often use it to check if the option has been passed on the command line, not realising that it actually checks if such an option exists.

I would like to suggest a better name, and another method that actually does what you think this one will do. But given that it would be a breaking change...

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