Skip to content

Commit 2ef953d

Browse files
committed
Only list supported rubies and versions if zero arguments are given.
1 parent 2edf8b2 commit 2ef953d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/ruby-install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
source "${0%/*}/../share/ruby-install/ruby-install.sh"
44

5-
parse_options "$@" || exit $?
6-
7-
if [[ -z "$ruby" ]]; then
5+
if (( $# == 0 )); then
86
list_rubies
97
exit $?
8+
else
9+
parse_options "$@" || exit $?
1010
fi
1111

1212
if [[ $force_update -eq 1 ]] ||

0 commit comments

Comments
 (0)