exe/boop in boop-0.1.0 vs exe/boop in boop-0.2.0
- old
+ new
@@ -9,11 +9,10 @@
warn
warn "Saves the contents of stdin to ~/.boop and does a `git push`."
exit 1
end
-
if ARGV.include?('--help') || ARGV.include?('-h') || ARGV.length > 2
print_usage!
end
if ENV['BOOP_URL'].nil? || ENV['BOOP_URL'].empty?
@@ -27,10 +26,10 @@
# Default to text paste.
command ||= :paste
boop = Boop.new(ENV['BOOP_URL'], "~/.boop")
-case command
+case command.to_sym
when :html, :paste
boop.send(command, name, $stdin.read)
else
print_usage!
end