Move extended root command description higher up in help#6281
Merged
swissspidy merged 2 commits intomainfrom Mar 17, 2026
Merged
Move extended root command description higher up in help#6281swissspidy merged 2 commits intomainfrom
swissspidy merged 2 commits intomainfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
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.mustacheinto the mainman.mustachetemplate’s DESCRIPTION section. - Sets a
root_commandboolean binding inHelp_Command::get_initial_markdown()soman.mustachecan 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a follow-up to #6273
Fixes #6280.