Sha256: 6e1dce593bb866453d719a53d985ee50a199df898f1cb37cfe87c87a8e9bcaa6
Contents?: true
Size: 588 Bytes
Versions: 17
Compression:
Stored size: 588 Bytes
Contents
#!/usr/bin/env ruby require File.join( File.dirname(__FILE__), '../../lib/blackbook.rb' ) require 'optparse' options = {} importer = :auto opts = OptionParser.new do |opts| opts.on("-u USERNAME") do |username| options[:username] = username end opts.on("-p PASSWORD") do |password| options[:password] = password end opts.on("-i [IMPORTER]") do |importer_name| importer = importer_name.to_sym end opts.on("-x [EXPORTER]") do |exporter_name| options[:as] = exporter_name.to_sym end end opts.parse!(ARGV) puts contacts = Blackbook.get( importer, options )
Version data entries
17 entries across 17 versions & 4 rubygems