Sha256: 0a1659cc75fed2abd22e20b4a8b4526632f74ea7caa899fe91c2f1b8278fcb74
Contents?: true
Size: 857 Bytes
Versions: 6
Compression:
Stored size: 857 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' require 'irb' require 'grope' use_shared_cookie = false opts = OptionParser.new do |opts| opts.banner = "Grope: A non-GUI library to represent browser environment using WebKit Framework + RubyCocoa" opts.define_head "Usage: #{$0} uri [options]" opts.separator "" opts.separator "Example:" opts.separator " grope http://www.ruby-lang.org/" opts.separator "" opts.separator "Options:" opts.on("-s", "--shared-cookie", "Use shared cookie") do use_shared_cookie = true end opts.on_tail("-h", "--help", "Show this message") do puts opts exit end end opts.parse! uri = ARGV.shift if uri.to_s.strip.empty? puts opts exit 1 end @env = Grope::Env.new :use_shared_cookie => use_shared_cookie @env.load(uri) puts "Your environment is stored in @env..." IRB.start
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
grope-0.2.2 | bin/grope |
grope-0.2.0 | bin/grope |
grope-0.1.4 | bin/grope |
grope-0.1.3 | bin/grope |
grope-0.1.2 | bin/grope |
grope-0.1.1 | bin/grope |