scripts/docs in rvm-1.0.2 vs scripts/docs in rvm-1.0.3
- old
+ new
@@ -54,10 +54,14 @@
rdoc -a -o "$rvm_docs_path/$rvm_docs_ruby_string/$rvm_docs_type" > /dev/null 2>> "$rvm_log_path/$rvm_docs_ruby_string/docs.error.log"
fi
__rvm_pushpop
}
-case "$1" in
+args=($*)
+action="${args[0]}"
+args="$(echo ${args[@]:1}) " # Strip trailing / leading / extra spacing.
+
+case "$action" in
open) open_docs ;;
generate) generate_ri; generate_rdoc ;;
generate-ri) generate_ri ;;
generate-rdoc) generate_rdoc ;;
*) usage ;;