mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 06:35:50 +01: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 " 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
|
||||
|
|
Loading…
Reference in a new issue