Skip to content

Fix WP-CLI global --path collisions in markdown import/export #401

Description

@chubes4

Problem

Every WP-CLI invocation on an installation with Markdown Database Integration active emits registration warnings for both markdown-db import and markdown-db export because each command declares a custom --path argument, which conflicts with WP-CLI global WordPress-root selector.

This was reproduced with a read-only wp intelligence --help invocation. The warnings are unrelated to the requested command and occur during plugin command registration.

Evidence

markdown-database-integration.php registers markdown-db import and markdown-db export during WP-CLI bootstrap. Their command documentation in inc/class-wp-markdown-cli.php declares [--path=] for a Markdown content root. WP-CLI also reserves global --path= for the WordPress installation root, producing the warning for both registrations.

Acceptance criteria

  • Import and export use a non-conflicting, consistently named content-root option.
  • wp --path= markdown-db import and export register without warnings and retain explicit content-root selection.
  • Command help and examples document the global root selector separately from the content-root option.
  • Add a registration-level CLI test that fails on global-option collisions for these commands.

AI assistance

OpenAI gpt-5.6-terra via OpenCode reproduced the sanitized bootstrap warnings, inspected the installed runtime and repository registration paths, checked existing Markdown Database Integration trackers, and drafted this report under Chris Huber direction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions