Skip to content

Move extended root command description higher up in help#6281

Merged
swissspidy merged 2 commits intomainfrom
fix/6280-move
Mar 17, 2026
Merged

Move extended root command description higher up in help#6281
swissspidy merged 2 commits intomainfrom
fix/6280-move

Conversation

@swissspidy
Copy link
Copy Markdown
Member

This is a follow-up to #6273

Fixes #6280.

@github-actions

This comment was marked as resolved.

@gemini-code-assist

This comment was marked as resolved.

@github-actions github-actions bot added command:cli Related to 'cli' command command:cli-help labels Mar 17, 2026
gemini-code-assist[bot]

This comment was marked as resolved.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy marked this pull request as ready for review March 17, 2026 17:11
@swissspidy swissspidy requested a review from a team as a code owner March 17, 2026 17:11
Copilot AI review requested due to automatic review settings March 17, 2026 17:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the wp help (root command) output to make the “use wp help <command> for more info” guidance (and handbook link) appear earlier and more prominently, addressing #6280 as a follow-up to #6273.

Changes:

  • Moves the root-command-only “Run 'wp help ' …” + handbook link block from man-params.mustache into the main man.mustache template’s DESCRIPTION section.
  • Sets a root_command boolean binding in Help_Command::get_initial_markdown() so man.mustache can conditionally render the block only for the root command.
  • Removes the now-relocated root-command-only block from man-params.mustache.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
templates/man.mustache Adds the root-command-only help hint + handbook link immediately after the root description, so it appears higher in wp help.
templates/man-params.mustache Removes the root-command-only hint/link previously appended after global parameters.
php/commands/src/Help_Command.php Adds the root_command binding used by man.mustache to conditionally show the hint/link only for wp help.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@swissspidy swissspidy merged commit c5e537f into main Mar 17, 2026
73 checks passed
@swissspidy swissspidy deleted the fix/6280-move branch March 17, 2026 17:47
@swissspidy swissspidy added this to the 3.0.0 milestone Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:cli Related to 'cli' command command:cli-help

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wp help <specific-command> should be mentioned earlier / more prominent in help index

2 participants