Class: Agate::CLI

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

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



8
9
10
# File 'lib/agate/cli.rb', line 8

def initialize
  @options = {}
end

Instance Method Details

#parseObject



12
13
14
15
16
17
# File 'lib/agate/cli.rb', line 12

def parse
  parse_opts

  agate = Agate::Parser.new(@options)
  agate.parse(ARGV.join)
end