Skip to content

Conversation

hmellor
Copy link
Member

@hmellor hmellor commented Sep 15, 2025

Closes #22647:

  • Ensures that help text is fetched from attr docstrings if --help is in any arg
  • Add personalised epilogs for subcommand help text
  • Improve vllm serve description to be clearer in vllm serve --help
  • Concise top level --help for all subcommands which use FlexibleArgumentParser
  • Refactored --help= logic to be cleaner and match the new desired behaviour
  • Removed less/more pagination since this PR contains an alternative solution

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly improves the user experience of the CLI's --help functionality by making it more concise and introducing a powerful search feature. The refactoring also cleans up the argument parsing logic. I've identified a couple of issues: a potential crash when formatting help text for argument groups without a title, and a regression in the --help=<group> behavior that could lead to confusing output. Addressing these will make the new help system more robust and user-friendly.

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@JustinXHale
Copy link

Thanks so much for working on this @hmellor!

@hmellor
Copy link
Member Author

hmellor commented Sep 16, 2025

No problem, I'll give you some time to tinker with it to see if it behaves how you imagined, then I'll sort out pre-commit and get a code review

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@mergify mergify bot added the documentation Improvements or additions to documentation label Sep 16, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@hmellor hmellor enabled auto-merge (squash) September 24, 2025 08:51
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 24, 2025
@hmellor hmellor merged commit e7f27ea into vllm-project:main Sep 24, 2025
55 checks passed
@hmellor hmellor deleted the cli-ux branch September 24, 2025 23:08
yewentao256 pushed a commit that referenced this pull request Oct 3, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: yewentao256 <zhyanwentao@126.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation frontend ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Improve vllm serve --help Output for Enhanced User Experience
4 participants