You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fastapi_cli/cli.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ def _run(
58
58
workers: Union[int, None] =None,
59
59
root_path: str="",
60
60
command: str,
61
-
app: Union[str, None] =None,
61
+
app_name: Union[str, None] =None,
62
62
proxy_headers: bool=False,
63
63
) ->None:
64
64
try:
@@ -135,7 +135,7 @@ def dev(
135
135
help="The root path is used to tell your app that it is being served to the outside world with some [bold]path prefix[/bold] set up in some termination proxy or similar."
136
136
),
137
137
] ="",
138
-
app: Annotated[
138
+
app_name: Annotated[
139
139
Union[str, None],
140
140
typer.Option(
141
141
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
@@ -179,7 +179,7 @@ def dev(
179
179
port=port,
180
180
reload=reload,
181
181
root_path=root_path,
182
-
app=app,
182
+
app_name=app_name,
183
183
command="dev",
184
184
proxy_headers=proxy_headers,
185
185
)
@@ -224,7 +224,7 @@ def run(
224
224
help="The root path is used to tell your app that it is being served to the outside world with some [bold]path prefix[/bold] set up in some termination proxy or similar."
225
225
),
226
226
] ="",
227
-
app: Annotated[
227
+
app_name: Annotated[
228
228
Union[str, None],
229
229
typer.Option(
230
230
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
0 commit comments