@@ -26,10 +26,10 @@ coach="${DIR}/sample_coach"
2626teamname=" SSP"
2727host=" localhost"
2828port=6000
29- g_ip =" localhost"
30- g_port =50051
31- diff_g_port =" false"
32- gp20 =" false"
29+ rpc_host =" localhost"
30+ rpc_port =50051
31+ rpc_port_step =" false"
32+ rpc_add_20_to_port_for_right =" false"
3333rpc_type=" thrift"
3434coach_port=" "
3535debug_server_host=" "
@@ -84,10 +84,10 @@ usage()
8484 echo " --log-dir DIRECTORY specifies debug log directory (default: /tmp)"
8585 echo " --debug-log-ext EXTENSION specifies debug log file extension (default: .log)"
8686 echo " --fullstate FULLSTATE_TYPE specifies fullstate model handling"
87- echo " --g-ip GRPC IP specifies grpc IP (default: localhost)"
88- echo " --g -port GRPC PORT specifies grpc port (default: 50051)"
89- echo " --diff-g- port specifies different grpc port for each player (default: false)"
90- echo " --gp20 add 20 to GRPC Port if team run on right side (default: false)"
87+ echo " --rpc-host RPC host specifies rpc host (default: localhost)"
88+ echo " --rpc -port RPC PORT specifies rpc port (default: 50051)"
89+ echo " --rpc- port-step specifies different rpc port for each player (default: false)"
90+ echo " --rpc-add-20-to-port-for-right add 20 to RPC Port if team run on right side (default: false)"
9191 echo " --rpc-type type of rpc framework (default: thrift) or grpc"
9292 echo " FULLSTATE_TYPE is one of [ignore|reference|override]." ) 1>&2
9393}
100100 usage
101101 exit 0
102102 ;;
103- --g-ip )
103+ --rpc-host )
104104 if [ $# -lt 2 ]; then
105105 usage
106106 exit 1
107107 fi
108- g_ip =" ${2} "
108+ rpc_host =" ${2} "
109109 shift 1
110110 ;;
111- --g -port)
111+ --rpc -port)
112112 if [ $# -lt 2 ]; then
113113 usage
114114 exit 1
115115 fi
116- g_port =" ${2} "
116+ rpc_port =" ${2} "
117117 shift 1
118118 ;;
119- --diff-g- port)
120- diff_g_port =" true"
119+ --rpc- port-step )
120+ rpc_port_step =" true"
121121 ;;
122- --gp20 )
123- gp20 =" true"
122+ --rpc-add-20-to-port-for-right )
123+ rpc_add_20_to_port_for_right =" true"
124124 ;;
125125 --rpc-type)
126126 if [ $# -lt 2 ]; then
@@ -351,14 +351,14 @@ opt="${opt} --debug_server_host ${debug_server_host}"
351351opt=" ${opt} --debug_server_port ${debug_server_port} "
352352opt=" ${opt} ${offline_logging} "
353353opt=" ${opt} ${debugopt} "
354- opt=" ${opt} --g-ip ${g_ip } "
355- opt=" ${opt} --g -port ${g_port } "
354+ opt=" ${opt} --rpc-host ${rpc_host } "
355+ opt=" ${opt} --rpc -port ${rpc_port } "
356356opt=" ${opt} --rpc-type ${rpc_type} "
357- if [ " ${same_g_port } " = " true" ]; then
358- opt=" ${opt} --diff-g- port"
357+ if [ " ${rpc_port_step } " = " true" ]; then
358+ opt=" ${opt} --rpc- port-step "
359359fi
360- if [ " ${gp20 } " = " true" ]; then
361- opt=" ${opt} --gp20 "
360+ if [ " ${rpc_add_20_to_port_for_right } " = " true" ]; then
361+ opt=" ${opt} --rpc-add-20-to-port-for-right "
362362fi
363363
364364ping -c 1 $host
@@ -408,14 +408,14 @@ if [ "${usecoach}" = "true" ]; then
408408 coachopt=" ${coachopt} --debug_server_port ${debug_server_port} "
409409 coachopt=" ${coachopt} ${offline_logging} "
410410 coachopt=" ${coachopt} ${debugopt} "
411- coachopt=" ${coachopt} --g-ip ${g_ip } "
412- coachopt=" ${coachopt} --g -port ${g_port } "
411+ coachopt=" ${coachopt} --rpc-host ${rpc_host } "
412+ coachopt=" ${coachopt} --rpc -port ${rpc_port } "
413413 coachopt=" ${coachopt} --rpc-type ${rpc_type} "
414- if [ " ${same_g_port } " = " true" ]; then
415- coachopt=" ${coachopt} --diff-g- port"
414+ if [ " ${rpc_port_step } " = " true" ]; then
415+ coachopt=" ${coachopt} --rpc- port-step "
416416 fi
417- if [ " ${gp20 } " = " true" ]; then
418- coachopt=" ${coachopt} --gp20 "
417+ if [ " ${rpc_add_20_to_port_for_right } " = " true" ]; then
418+ coachopt=" ${coachopt} --rpc-add-20-to-port-for-right "
419419 fi
420420
421421 if [ X" ${offline_mode} " != X' ' ]; then
0 commit comments