Skip to content
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

loader, module: Fix help_prefix cleanup & example docs #1303

Merged
merged 1 commit into from
Nov 6, 2018
Merged

loader, module: Fix help_prefix cleanup & example docs #1303

merged 1 commit into from
Nov 6, 2018

Conversation

dgw
Copy link
Member

@dgw dgw commented Apr 3, 2018

Callable cleanup in loader now always uses help_prefix's default value to replace. The documentation for module.example() reflects this, and I also moved the constructor documentation up to where it would be included in the auto-generated API docs (so the parameters are now visible in the public documentation without reading the code).

This should resolve #1283. I might add sanity checking for help_prefix (e.g. checking its length and printing a warning on startup if it's longer than one character), based on feedback from @kwaaak.

@dgw dgw added this to the 6.6.0 milestone Apr 3, 2018
@dgw dgw mentioned this pull request Apr 3, 2018
Callable cleanup in loader now always uses help_prefix's default value
to replace. The documentation for module.example() reflects this, and I
also moved the constructor documentation up to where it would be
included in the auto-generated API docs (so the parameters are now
visible in the public documentation without reading the code).
@dgw
Copy link
Member Author

dgw commented Nov 6, 2018

Merging this will let me clean up my branch that addresses #1200. It's the oldest "ready-to-go" PR at present, and I do prefer merging in FIFO order when possible.

@dgw dgw merged commit 1bd8e45 into sopel-irc:master Nov 6, 2018
@dgw dgw deleted the 1283-help-prefix branch November 6, 2018 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example "e.g." text for help commands omits first character and includes escape character
1 participant