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;