We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23dc3e2 commit a568cffCopy full SHA for a568cff
bin/ruby-build
@@ -121,6 +121,14 @@ usage() {
121
[ -z "$1" ] && exit 1
122
}
123
124
+list_definitions() {
125
+ { for definition in "${RUBY_BUILD_ROOT}/share/ruby-build/"*; do
126
+ echo "${definition##*/}"
127
+ done
128
+ } | sort
129
+}
130
+
131
132
133
unset VERBOSE
134
RUBY_BUILD_ROOT="$(abs_dirname "$0")/.."
@@ -132,10 +140,15 @@ case "$1" in
140
echo "Options:"
141
echo
142
echo " -v/--verbose Verbose mode: print compilation status to stdout"
143
+ echo " --definitions List all built-in definitions"
135
144
136
145
} >&2
137
146
exit 0
138
147
;;
148
+"--definitions" )
149
+ list_definitions
150
+ exit 0
151
+ ;;
139
152
"-v" | "--verbose" )
153
VERBOSE=true
154
shift
0 commit comments