Browse Source

Remove extra flags from pc run (#434)

Robert Neumann 2 years ago
parent
commit
dab7e5d2a1
1 changed files with 6 additions and 2 deletions
  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."
     ),