bin/gli in davetron5000-gli-0.1.6 vs bin/gli in davetron5000-gli-0.2.0
- old
+ new
@@ -31,11 +31,11 @@
c.desc 'Overwrite/ignore existing files and directories'
c.switch [:force]
c.action do |g,o,args|
if args.length < 1
- raise(MissingArgumentException,'You must specify the name of your project')
+ raise 'You must specify the name of your project'
end
Scaffold.create_scaffold(g[:r],!o[:notest],o[:e],args[0],args[1..-1],o[:force],g[:n])
end
end
@@ -50,12 +50,7 @@
end
post do |global,command,options,args|
puts "Executed #{command.name}" if global[:v]
end
-
-#on_error do |global,command,options,args|
-# puts "Got an error" if global[:v]
-# true
-#end
run(ARGV)