Sha256: a53727707b8877af95e775ba345f3ec9ca795eb34ad6f33b3d9a48aa40dc5257
Contents?: true
Size: 481 Bytes
Versions: 8
Compression:
Stored size: 481 Bytes
Contents
require 'English' require 'optparse' require 'irb' require 'epub/parser' shell = IRB OptionParser.new {|opt| opt.banner = <<EOB Open EPUB file in IRB Usage: #{File.basename($PROGRAM_NAME)} EPUBFILE EOB opt.on '--pry', 'Use Pry instead of IRB as shell' do require 'pry' shell = Pry end }.parse! $0 = File.basename($PROGRAM_NAME) include EPUB::Book::Features EPUB::Parser.parse(ARGV.shift, :book => self) $stderr.puts "Enter \"exit\" to exit #{shell}" shell.start
Version data entries
8 entries across 8 versions & 2 rubygems