📝 Add note about how subcommands with function names using underscores are converted to dashes (#403)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
4b930b245a
commit
7c88b2d191
1 changed files with 10 additions and 0 deletions
|
@ -44,3 +44,13 @@ Creating user: Camila
|
|||
```
|
||||
|
||||
</div>
|
||||
|
||||
Note that any underscores in the function name will be replaced with dashes.
|
||||
|
||||
So if your function is something like:
|
||||
|
||||
```Python
|
||||
def create_user(username: str):
|
||||
...
|
||||
```
|
||||
Then the command name will be `create-user`.
|
||||
|
|
Loading…
Reference in a new issue