From 9a9acc119ae5a95b117cca0ad6ffad65554faa71 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 25 Aug 2021 11:23:26 +0200 Subject: [PATCH] Webpublisher - introduced command line arguments for host and port --- openpype/cli.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openpype/cli.py b/openpype/cli.py index 28195008cc..0b6d41b060 100644 --- a/openpype/cli.py +++ b/openpype/cli.py @@ -96,9 +96,11 @@ def eventserver(debug, @main.command() @click.option("-d", "--debug", is_flag=True, help="Print debug messages") +@click.option("-h", "--host", help="Host", default=None) +@click.option("-p", "--port", help="Port", default=None) @click.option("-e", "--executable", help="Executable") @click.option("-u", "--upload_dir", help="Upload dir") -def webpublisherwebserver(debug, executable, upload_dir): +def webpublisherwebserver(debug, executable, upload_dir, host=None, port=None): """Starts webserver for communication with Webpublish FR via command line OP must be congigured on a machine, eg. OPENPYPE_MONGO filled AND @@ -111,7 +113,9 @@ def webpublisherwebserver(debug, executable, upload_dir): PypeCommands().launch_webpublisher_webservercli( upload_dir=upload_dir, - executable=executable + executable=executable, + host=host, + port=port )