code: 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
docs: Parse given arguments
  
   @param [Array] argv