Skip to content

Do not silently ignore typos in --url parameter #5716

@alekstrust

Description

@alekstrust

I'm working in a multisite instance exporting and importing posts. At some point I realized the --url parameter had a missing / in the protocol and all posts were included in the primary blog.

This due to wp-cli ignoring the --url param without any notice if it's wrong.

It would be ideal to print some info of the site we are currently working on at the beginning of the output, and throw an error if the site in the given url does not exists.

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