Skip to content

Commit

Permalink
add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojingchen committed Aug 28, 2019
1 parent 2019445 commit 6230bdd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/kind-cluster-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Before run this script,please ensure that:
* have installed docker
Options:
-h,--help prints the usage message
-n,--name name of the Kubernetes cluster,default value: kind
-c,--nodeNum the count of the cluster nodes,default value: 6
-k,--k8sVersion version of the Kubernetes cluster,default value: v1.12.8
-v,--volumeNum the volumes number of each kubernetes node,default value: 9
Usage:
$0 --name testCluster --nodeNum 4 --k8sVersion v1.12.9
EOF
exit 1
}

while [[ $# -gt 0 ]]
Expand Down Expand Up @@ -44,6 +44,10 @@ case $key in
shift
shift
;;
-h|--help)
usage
exit 0
;;
*)
echo "unknown option: $key"
usage
Expand Down

0 comments on commit 6230bdd

Please sign in to comment.