Permalink
Browse files

More traditional behavior for './install --help'

One would not normally expect a script to do any work after being passed
'--help', or after receiving an unrecognized parameter.
  • Loading branch information...
1 parent 77117d6 commit b7b62db82dc5330aacaafe4762ab3de1f59e1bc5 @ilikepi ilikepi committed with wayneeseguin Nov 11, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 scripts/install
View
@@ -42,7 +42,7 @@ usage()
--version : display rvm package version
- "
+ \n"
}
check_rubyopt_conditions()
@@ -192,7 +192,12 @@ while [[ $# -gt 0 ]] ; do
env | grep '^rvm_'
set -o xtrace
;;
- --help|*) usage ;;
+ --help) usage ; exit ;;
+ *)
+ echo "Unrecognized option: $token"
+ usage
+ exit
+ ;;
esac
done

0 comments on commit b7b62db

Please sign in to comment.