-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Improve --help
for enhanced user experience
#24903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
There was a problem hiding this 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>
Thanks so much for working on this @hmellor! |
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 |
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM
Closes #22647:
--help
is in any argvllm serve
description to be clearer invllm serve --help
--help
for all subcommands which useFlexibleArgumentParser
--help=
logic to be cleaner and match the new desired behaviourless
/more
pagination since this PR contains an alternative solution