-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Ensure all slash commands support -h/--help
#878
Conversation
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.
@krassowski Thank you for opening this PR to improve help in slash commands! Left some feedback below.
-h/--help
@krassowski I'm marking this as a draft for now as you work on addressing the feedback above. Feel free to mark this as ready & ping me when done, thanks! 👋 |
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.
@krassowski Almost there! One minor naming suggestion below.
Co-authored-by: david qiu <[email protected]>
Co-authored-by: david qiu <[email protected]>
by default the `/help` and "default" handlers opt-out from `-h` handling
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.
@krassowski Awesome work, thank you!!! 🎉
* Fix help for slash commands * Do not add `-h` to the help command itself Co-authored-by: david qiu <[email protected]> * Fix typo Co-authored-by: david qiu <[email protected]> * Centralize handling of `-h`/`--help`, with opt-out via class attribute by default the `/help` and "default" handlers opt-out from `-h` handling * Add colon delimiter and wrap the arguments in backticks * Use Title case for help messages * Remove final leftover * Rename `display_arguments_help` to `supports_help` --------- Co-authored-by: david qiu <[email protected]>
Fixes #798
I think this is a good first step, explaining
/learn -h
options and preventing destructive action on/clear -h
.