mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-08-23 01:51:16 +02:00
Fix --help
This commit is contained in:
parent
a568cffd98
commit
1a8c14377f
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
"-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
|
||||||
|
|
Loading…
Reference in a new issue