Skip to content

Commit

Permalink
More traditional behavior for './install --help'
Browse files Browse the repository at this point in the history
One would not normally expect a script to do any work after being passed
'--help', or after receiving an unrecognized parameter.
  • Loading branch information
ilikepi authored and wayneeseguin committed Nov 12, 2010
1 parent 77117d6 commit b7b62db
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/install
Expand Up @@ -42,7 +42,7 @@ usage()
--version : display rvm package version --version : display rvm package version
" \n"
} }


check_rubyopt_conditions() check_rubyopt_conditions()
Expand Down Expand Up @@ -192,7 +192,12 @@ while [[ $# -gt 0 ]] ; do
env | grep '^rvm_' env | grep '^rvm_'
set -o xtrace set -o xtrace
;; ;;
--help|*) usage ;; --help) usage ; exit ;;
*)
echo "Unrecognized option: $token"
usage
exit
;;
esac esac
done done


Expand Down

0 comments on commit b7b62db

Please sign in to comment.