From 4f72b8dba2bf11c1b76a985bb110ecf42387f202 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 2 Jun 2019 15:36:08 +0800 Subject: [PATCH] 1 --- server/robotserver/app.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/robotserver/app.cc b/server/robotserver/app.cc index b5f98e1..cf1d66d 100755 --- a/server/robotserver/app.cc +++ b/server/robotserver/app.cc @@ -406,13 +406,23 @@ void App::UnInitLog() bool App::ParseOpt() { int ch = 0; - while ((ch = getopt(argc, argv, "i:t:r:f:")) != -1) { + while ((ch = getopt(argc, argv, "i:t:r:f:h:p:")) != -1) { switch (ch) { case 'i': { instance_id = a8::XValue(optarg); } break; + case 'h': + { + wsp_host = a8::XValue(optarg).GetString(); + } + break; + case 'p': + { + wsp_port = a8::XValue(optarg); + } + break; case 't': { is_test_mode = true;