Skip to content

Commit c01e9e3

Browse files
committed
Add missing names
1 parent 3a92fad commit c01e9e3

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs_src/subcommands/name_help/tutorial002.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
app = typer.Typer()
44

55
users_app = typer.Typer()
6-
app.add_typer(users_app)
6+
app.add_typer(users_app, name="users")
77

88

99
@users_app.callback()

docs_src/subcommands/name_help/tutorial003.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def users():
1010

1111

1212
users_app = typer.Typer(callback=users)
13-
app.add_typer(users_app)
13+
app.add_typer(users_app, name="users")
1414

1515

1616
@users_app.command()

docs_src/subcommands/name_help/tutorial004.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def old_callback():
1010

1111

1212
users_app = typer.Typer(callback=old_callback)
13-
app.add_typer(users_app)
13+
app.add_typer(users_app, name="users")
1414

1515

1616
@users_app.callback()

docs_src/subcommands/name_help/tutorial005.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def new_users():
1818
"""
1919

2020

21-
app.add_typer(users_app, callback=new_users)
21+
app.add_typer(users_app, callback=new_users, name="users")
2222

2323

2424
@users_app.callback()

docs_src/subcommands/name_help/tutorial006.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def new_users():
1818
"""
1919

2020

21-
app.add_typer(users_app, callback=new_users)
21+
app.add_typer(users_app, callback=new_users, name="users")
2222

2323

2424
@users_app.callback()

docs_src/subcommands/name_help/tutorial007.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def new_users():
1818
"""
1919

2020

21-
app.add_typer(users_app, callback=new_users)
21+
app.add_typer(users_app, callback=new_users, name="users")
2222

2323

2424
@users_app.callback("call-users", help="Help from callback for users.")

0 commit comments

Comments
 (0)