📝 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:
Taranjeet Singh 2022-11-05 20:09:04 +05:30 committed by GitHub
parent 4b930b245a
commit 7c88b2d191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.