Class: OctoMerge::CLI::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/octo_merge/cli/parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Parser

Returns a new instance of Parser.



10
11
12
# File 'lib/octo_merge/cli/parser.rb', line 10

def initialize(args)
  @args = args
end

Class Method Details

.parse(args) ⇒ Object



6
7
8
# File 'lib/octo_merge/cli/parser.rb', line 6

def self.parse(args)
  new(args).parse!
end

Instance Method Details

#parse!Object



14
15
16
17
18
# File 'lib/octo_merge/cli/parser.rb', line 14

def parse!
  setup
  opts.parse!(args)
  options
end