Skip to content
Browse files

removed the optparse livrary requirement

  • Loading branch information...
1 parent 90031c9 commit 27039ca0864a20b5cb7def6e39551743b4ccd8a9 @liamja committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 torrent-parser.rb
View
3 torrent-parser.rb
@@ -1,12 +1,11 @@
require 'rubygems'
require 'bencode'
require 'digest/sha1'
-require 'optparse'
ARGV.each do|file|
- puts "File: #{file}"
torrent = BEncode.load_file( file )
info_hash = Digest::SHA1.hexdigest( torrent['info'].bencode )
+ puts "File: #{file}"
puts "Hash: #{info_hash}"
puts "---"
end

0 comments on commit 27039ca

Please sign in to comment.
Something went wrong with that request. Please try again.