You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marvin.apache.org by we...@apache.org on 2020/10/09 14:27:43 UTC

[incubator-marvin] 04/05: Change host/port to grpchost/grpcport to avoid ambiguity

This is an automated email from the ASF dual-hosted git repository.

weichen pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-marvin.git

commit c7960db6a176cf538f8c55b7fdadd6ea08bacf22
Author: cardosolucas <ca...@gmail.com>
AuthorDate: Mon Oct 5 13:54:38 2020 -0300

    Change host/port to grpchost/grpcport to avoid ambiguity
---
 marvin-cli/marvin_cli/management/engine.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/marvin-cli/marvin_cli/management/engine.py b/marvin-cli/marvin_cli/management/engine.py
index fea564b..10d12bd 100644
--- a/marvin-cli/marvin_cli/management/engine.py
+++ b/marvin-cli/marvin_cli/management/engine.py
@@ -89,8 +89,8 @@ def import_project(file, dest):
     extract_folder(file, dest)
 
 @cli.command("engine-dryrun", help="Run engines in a standalone way.")
-@click.option('--host', '-gh', help='gRPC Host Address', default='localhost')
-@click.option('--port', '-gp', help='gRPC Port', default='50057')
+@click.option('--grpchost', '-gh', help='gRPC Host Address', default='localhost')
+@click.option('--grpcport', '-gp', help='gRPC Port', default='50057')
 @click.option(
     '--action',
     '-a',
@@ -103,8 +103,8 @@ def dryrun(host, port, action, profiling):
     rc.run_dryrun(action, profiling)
 
 @cli.command("engine-grpcserver", help="Run gRPC of given actions.")
-@click.option('--host', '-gh', help='gRPC Host Address', default='localhost')
-@click.option('--port', '-gp', help='gRPC Port', default='50057')
+@click.option('--grpchost', '-gh', help='gRPC Host Address', default='localhost')
+@click.option('--grpcport', '-gp', help='gRPC Port', default='50057')
 @click.option(
     '--action',
     '-a',
@@ -235,8 +235,8 @@ def _sleep(sec):
     time.sleep(5)
 
 @cli.command("benchmark", help="Collect engine benchmark stats.")
-@click.option('--host', '-gh', help='gRPC Host Address', default='localhost')
-@click.option('--port', '-gp', help='gRPC Port', default='50057')
+@click.option('--grpchost', '-gh', help='gRPC Host Address', default='localhost')
+@click.option('--grpcport', '-gp', help='gRPC Port', default='50057')
 @click.option('--profiling', '-p', default=False, is_flag=True, help='Deterministic profiling of user code.')
 @click.option('--delay', '-d', default=False, is_flag=True, help='Delay the benchmark for 5 seconds.')
 @click.pass_context
@@ -302,4 +302,4 @@ def plot(protocol):
             label = PLOTS[op_name]
             make_graph(op_name, label, protocol)
     except KeyboardInterrupt:
-        sys.exit(0)
\ No newline at end of file
+        sys.exit(0)