Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bin/earthquake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
gem 'slop', '~> 2.0'
require 'slop'

argv = ARGV.dup
Expand All @@ -16,6 +15,13 @@ rescue => 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?

Expand Down
2 changes: 1 addition & 1 deletion earthquake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "launchy"
s.add_runtime_dependency "oauth"
s.add_runtime_dependency "twitter_oauth", "= 0.4.3"
s.add_runtime_dependency "slop", "~> 2.0"
s.add_runtime_dependency "slop", "~> 3.0"
s.add_development_dependency "rspec", "~> 2.0"
s.add_development_dependency "bundler"

Expand Down