diff twisted/plugins/libervia_server.py @ 1368:9624c2a89a92

server: new `--build-only` flag: when this flag is set, the HTTP server is not launched, and Libervia quits immediately after running building tasks.
author Goffi <goffi@goffi.org>
date Fri, 20 Nov 2020 18:04:05 +0100
parents ce5cfe004d4e
children e3e303a30a74
line wrap: on
line diff
--- a/twisted/plugins/libervia_server.py	Fri Nov 20 18:02:43 2020 +0100
+++ b/twisted/plugins/libervia_server.py	Fri Nov 20 18:04:05 2020 +0100
@@ -148,6 +148,7 @@
 
 # Flags are in command line only
 OPT_FLAGS = [
+    ['build-only', 'B', _("Only build website, don't run the server")],
     ['dev-mode', 'D', _('Developer mode, automatically reload modified pages')],
 ]