We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45b4b5 commit 0400e6aCopy full SHA for 0400e6a
1 file changed
install.sh
@@ -107,6 +107,14 @@ fi
107
108
mirror=''
109
DRY_RUN=${DRY_RUN:-}
110
+
111
+usage() {
112
+ echo
113
+ echo "USAGE: "
114
+ echo " ${0} [--channel <stable|test>] [--mirror <Aliyun|AzureChinaCloud>] [--version <VERSION>] [--dry-run] [--help]"
115
116
+}
117
118
while [ $# -gt 0 ]; do
119
case "$1" in
120
--channel)
@@ -124,8 +132,13 @@ while [ $# -gt 0 ]; do
124
132
VERSION="${2#v}"
125
133
shift
126
134
;;
135
+ --help)
136
+ usage
137
+ exit 0
138
+ ;;
127
139
--*)
128
140
echo "Illegal option $1"
141
129
142
exit 1
130
143
131
144
esac
0 commit comments