소스 검색

Remove extra flags from pc run (#434)

Robert Neumann 2 년 전
부모
커밋
dab7e5d2a1
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      pynecone/pc.py

+ 6 - 2
pynecone/pc.py

@@ -54,8 +54,12 @@ def run(
     env: constants.Env = typer.Option(
         constants.Env.DEV, help="The environment to run the app in."
     ),
-    frontend: bool = typer.Option(True, help="Whether to run the frontend."),
-    backend: bool = typer.Option(True, help="Whether to run the backend."),
+    frontend: bool = typer.Option(
+        True, "--no-frontend", help="Disable frontend execution."
+    ),
+    backend: bool = typer.Option(
+        True, "--no-backend", help="Disable backend execution."
+    ),
     loglevel: constants.LogLevel = typer.Option(
         constants.LogLevel.ERROR, help="The log level to use."
     ),