Commit 03d01229 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Extract OptionsRecord class from Options.

Storing the actual options in a separate OptionsRecord while processing
them inside Options class.

Lots of changes because a myriad of instance variable references needed
to be changed to point at @opts record.
parent 8ee55a5f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ require 'jsduck/app'
require 'jsduck/options'

opts = JsDuck::Options.new
opts.parse!(ARGV)
exit_code = JsDuck::App.new(opts).run
exit_code = JsDuck::App.new(opts.parse(ARGV)).run

exit exit_code
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ module JsDuck

  # The main application logic of jsduck
  class App
    # Initializes app with JsDuck::Options object
    # Initializes app with JsDuck::OptionsRecord object
    def initialize(opts)
      @opts = opts
    end