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
Showing only changes of commit 23b390971f - Show all commits

View File

@@ -1032,6 +1032,8 @@ class Option(Generic[T, DT]): # type: ignore
The default for this option, overwrites Option during parsing.
description: :class:`str`
The description for this option, is unpacked to :attr:`.Command.option_descriptions`
name: :class:`str`
The name of the option. This defaults to the parameter name.
"""
description: DT