lib/Plasper/options.rb
def parse(argv)
      OptionParser.new do |options|
        usage_and_help options
        assign_text_file options
        assign_weights_file options
        assign_output_file options

        begin
          options.parse argv
        rescue OptionParser::ParseError => error
          STDERR.puts error.message, "\n", options
          exit(-1)
        end
      end
    end
def parse(argv)
      OptionParser.new do |options|
        usage_and_help options
        assign_text_file options
        assign_weights_file options
        assign_output_file options

        begin
          options.parse argv
        rescue OptionParser::ParseError => error
          STDERR.puts error.message, "\n", options
          exit(-1)
        end
      end
    end
def parse ( argv ) OptionParser . new do | options | usage_and_help options assign_text_file options assign_weights_file options assign_output_file options begin options . parse argv rescue OptionParser :: ParseError => error STDERR . puts error . message , "\n" , options exit ( - 1 ) end end end
Parse given arguments

 @param [Array] argv
Parse given arguments