bin/wod in wod-0.0.2 vs bin/wod in wod-0.0.3
- old
+ new
@@ -2,10 +2,17 @@
$:.unshift File.join File.dirname(__FILE__), '../lib'
require "wod"
-args = ARGV.dup
-ARGV.clear
+args = []
+options = []
+
+ARGV.each do |a|
+ a =~ /^-/ ? options << a : args << a
+end
+
command = args.shift.strip rescue 'help'
+
+ARGV.clear
Wod::Command.run command, args
\ No newline at end of file