Skip to content

Commit 1a8c143

Browse files
committed
Fix --help
1 parent a568cff commit 1a8c143

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/ruby-build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ usage() {
118118
{ echo "usage: ruby-build [-v|--verbose] definition prefix"
119119
echo " ruby-build --definitions"
120120
} >&2
121-
[ -z "$1" ] && exit 1
121+
122+
if [ -z "$1" ]; then
123+
exit 1
124+
fi
122125
}
123126

124127
list_definitions() {
@@ -137,8 +140,6 @@ case "$1" in
137140
"-h" | "--help" )
138141
usage without_exiting
139142
{ echo
140-
echo "Options:"
141-
echo
142143
echo " -v/--verbose Verbose mode: print compilation status to stdout"
143144
echo " --definitions List all built-in definitions"
144145
echo

0 commit comments

Comments
 (0)