Commit 1a8c1437 by Sam Stephenson

Fix --help

parent a568cffd
...@@ -118,7 +118,10 @@ usage() { ...@@ -118,7 +118,10 @@ usage() {
{ echo "usage: ruby-build [-v|--verbose] definition prefix" { echo "usage: ruby-build [-v|--verbose] definition prefix"
echo " ruby-build --definitions" echo " ruby-build --definitions"
} >&2 } >&2
[ -z "$1" ] && exit 1
if [ -z "$1" ]; then
exit 1
fi
} }
list_definitions() { list_definitions() {
...@@ -137,8 +140,6 @@ case "$1" in ...@@ -137,8 +140,6 @@ case "$1" in
"-h" | "--help" ) "-h" | "--help" )
usage without_exiting usage without_exiting
{ echo { echo
echo "Options:"
echo
echo " -v/--verbose Verbose mode: print compilation status to stdout" echo " -v/--verbose Verbose mode: print compilation status to stdout"
echo " --definitions List all built-in definitions" echo " --definitions List all built-in definitions"
echo echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment