Fix --help

This commit is contained in:
Sam Stephenson 2011-08-07 12:44:52 -05:00
parent a568cffd98
commit 1a8c14377f

View file

@ -118,7 +118,10 @@ usage() {
{ echo "usage: ruby-build [-v|--verbose] definition prefix"
echo " ruby-build --definitions"
} >&2
[ -z "$1" ] && exit 1
if [ -z "$1" ]; then
exit 1
fi
}
list_definitions() {
@ -137,8 +140,6 @@ case "$1" in
"-h" | "--help" )
usage without_exiting
{ echo
echo "Options:"
echo
echo " -v/--verbose Verbose mode: print compilation status to stdout"
echo " --definitions List all built-in definitions"
echo