We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e8b56 commit f69655dCopy full SHA for f69655d
bin/ruby-build
@@ -1,5 +1,7 @@
1
#!/usr/bin/env bash
2
3
+RUBY_BUILD_VERSION="20110906"
4
+
5
set -E
6
exec 3<&2 # preserve original stderr at fd 3
7
@@ -128,8 +130,13 @@ use_gcc42_on_lion() {
128
130
fi
129
131
}
132
133
+version() {
134
+ echo "ruby-build ${RUBY_BUILD_VERSION}"
135
+}
136
137
usage() {
- { echo "usage: ruby-build [-v|--verbose] definition prefix"
138
+ { version
139
+ echo "usage: ruby-build [-v|--verbose] definition prefix"
140
echo " ruby-build --definitions"
141
} >&2
142
@@ -164,6 +171,10 @@ case "$1" in
164
171
list_definitions
165
172
exit 0
166
173
;;
174
+"--version" )
175
+ version
176
+ exit 0
177
+ ;;
167
178
"-v" | "--verbose" )
168
179
VERBOSE=true
169
180
shift
0 commit comments