Method: Lintron::CLI#initialize

Defined in:
lib/lintron/cli.rb

#initializeCLI

Returns a new instance of CLI.



11
12
13
14
15
16
17
18
19
20
# File 'lib/lintron/cli.rb', line 11

def initialize
  @options = {}
  OptionParser.new do |opts|
    opts.banner = 'Usage: linty [options]'

    opts.on('--watch', 'Watch for changes') do |v|
      @options[:watch] = v
    end
  end.parse!
end