From eaf8ed6bd09433a312784b48ed641f80b5078308 Mon Sep 17 00:00:00 2001 From: liningrui Date: Fri, 16 Apr 2021 16:01:32 +0800 Subject: [PATCH] use - shell commad Change-Id: I3eedce199cae965d8ed2d64708d059298acb5356 --- .../src/assembly/static/bin/raft-tools.sh | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/hugegraph-dist/src/assembly/static/bin/raft-tools.sh b/hugegraph-dist/src/assembly/static/bin/raft-tools.sh index a6d55d58db..4f0e6fc57d 100755 --- a/hugegraph-dist/src/assembly/static/bin/raft-tools.sh +++ b/hugegraph-dist/src/assembly/static/bin/raft-tools.sh @@ -17,12 +17,12 @@ LOG_PATH=${HOME_PATH}/logs function print_usage() { echo "usage: raft-tools.sh [options]" echo "options: " - echo " -l,--list_peers \${graph} \${group} list all peers' endpoints for graph, can be used on leader or follower node" - echo " -g,--get_leader \${graph} \${group} get the leader endpoint for graph, can be used on leader or follower node" - echo " -s,--set_leader \${graph} \${group} \${endpoint} set the leader endpoint for graph, can be used on leader or follower node" - echo " -t,--transfer_leader \${graph} \${group} \${endpoint} transfer leader to specified endpoint for graph, can be used on leader node" - echo " -a,--add_peer \${graph} \${group} \${endpoint} add peer for graph, can be used on leader node" - echo " -r,--remove_peer \${graph} \${group} \${endpoint} remove peer for graph, can be used on leader node" + echo " -l,--list-peers \${graph} \${group} list all peers' endpoints for graph, can be used on leader or follower node" + echo " -g,--get-leader \${graph} \${group} get the leader endpoint for graph, can be used on leader or follower node" + echo " -s,--set-leader \${graph} \${group} \${endpoint} set the leader endpoint for graph, can be used on leader or follower node" + echo " -t,--transfer-leader \${graph} \${group} \${endpoint} transfer leader to specified endpoint for graph, can be used on leader node" + echo " -a,--add-peer \${graph} \${group} \${endpoint} add peer for graph, can be used on leader node" + echo " -r,--remove-peer \${graph} \${group} \${endpoint} remove peer for graph, can be used on leader node" echo " -h,--help display help information" } @@ -91,28 +91,28 @@ case $1 in --help|-h) print_usage ;; - # list_peers - --list_peers|-l) + # list-peers + --list-peers|-l) list_peers $2 ;; - # get_leader - --get_leader|-g) + # get-leader + --get-leader|-g) get_leader $2 ;; - # set_leader - --set_leader|-s) + # set-leader + --set-leader|-s) set_leader $2 $3 ;; - # transfer_leader - --transfer_leader|-t) + # transfer-leader + --transfer-leader|-t) transfer_leader $2 $3 ;; - # add_peer - --add_peer|-a) + # add-peer + --add-peer|-a) add_peer $2 $3 ;; - # remove_peer - --remove_peer|-r) + # remove-peer + --remove-peer|-r) remove_peer $2 $3 ;; *)