bin/suspenders in suspenders-1.37.0 vs bin/suspenders in suspenders-1.38.0
- old
+ new
@@ -4,10 +4,15 @@
source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
$LOAD_PATH << source_path
require 'suspenders'
-if ['-v', '--version'].include? ARGV[0]
+if ARGV.empty?
+ puts "Please provide a path for the new application"
+ puts
+ puts "See --help for more info"
+ exit 0
+elsif ['-v', '--version'].include? ARGV[0]
puts Suspenders::VERSION
exit 0
end
templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))