bin/earthquake in earthquake-0.9.3 vs bin/earthquake in earthquake-0.9.4

- old
+ new

@@ -1,7 +1,6 @@ #!/usr/bin/env ruby -gem 'slop', '~> 2.0' require 'slop' argv = ARGV.dup slop = Slop.new(:strict => true, :help => true) slop.banner "Usage: earthquake [options] [directory]" @@ -14,9 +13,16 @@ rescue => e puts e exit! end options = slop.to_hash + +# XXX: work around slop's feature (bug?) +options.each do |key, val| + val = val.nil? ? nil : true if key.to_s =~ /^no-/ + options[key] = val +end + options.delete(:help) options[:dir] = argv.shift unless argv.empty? require 'pathname' $:.unshift Pathname.new(__FILE__).realpath.join('../../lib') if $0 == __FILE__