Module: Instafavs

Defined in:
lib/instafavs.rb,
lib/instafavs/version.rb

Defined Under Namespace

Modules: Config

Constant Summary collapse

CONFIG_FILENAME =
File.expand_path("~/.instafavs")
VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.parse_cmd_line_options!Object



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/instafavs.rb', line 49

def self.parse_cmd_line_options!
  options = {}
  OptionParser.new do |opts|
    opts.banner = "Usage: instafavs [options]"

    opts.on("-c", "--configure", "Configure Twitter and Instapaper account details") do |c|
      options[:configure] = true
    end
    
    opts.on("-v", "--verbose", "Provide more detailed output of what instafavs is doing") do |c|
      options[:verbose] = true
    end
  end.parse!

  options
end