bin/rvmify in rvmify-0.1.0 vs bin/rvmify in rvmify-0.2.0
- old
+ new
@@ -1,10 +1,18 @@
#!/usr/bin/env ruby
require 'rvmify'
+def usage
+ puts "To use rvmify, you must specify a directory."
+ puts
+ puts "Examples: rvmify ."
+ puts " rmvify /path/to/myproject"
+ abort
+end
+
dir = ARGV.shift
-abort("No directory found") if dir.nil?
+usage if dir.nil?
begin
Rvmify.generate(File.expand_path(dir))
rescue => e
abort(e.message)
\ No newline at end of file