examples/shorten.rb in shorturl-0.8.8 vs examples/shorten.rb in shorturl-1.0.0
- old
+ new
@@ -9,12 +9,12 @@
end
def main
begin
case ARGV.length
- when 0: usage
- when 1: puts ShortURL.shorten(ARGV[0])
- else puts ShortURL.shorten(ARGV[0], ARGV[1].to_sym)
+ when 0 then usage
+ when 1 then puts ShortURL.shorten(ARGV[0])
+ else puts ShortURL.shorten(ARGV[0], ARGV[1].to_sym)
end
rescue InvalidService
puts "Invalid service"
usage
end