Add the ability to set the option name with commands.Option #102

Merged
StockerMC merged 5 commits from patch-1 into 2.0 2021-10-16 14:00:57 +00:00
StockerMC commented 2021-10-15 17:36:10 +00:00 (Migrated from github.com)

Summary

This PR adds the ability to set the name of an option with commands.Option. This is useful when the option name is different from the parameter name.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)
<!-- Pull requests that do not fill this information in will likely be closed --> ## Summary This PR adds the ability to set the name of an option with `commands.Option`. This is useful when the option name is different from the parameter name. ## Checklist - [x] If code changes were made then they have been tested. - [x] I have updated the documentation to reflect the changes. - [ ] This PR fixes an issue. - [x] This PR adds something new (e.g. new method or parameters). - [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed) - [ ] This PR is **not** a code change (e.g. documentation, README, ...)
Gnome-py (Migrated from github.com) approved these changes 2021-10-15 17:43:06 +00:00
Gnome-py (Migrated from github.com) left a comment

LGTM, just run black and I'll merge

LGTM, just run black and I'll merge
Sign in to join this conversation.
No description provided.