lib/mutest/cli.rb
def parse(arguments)
      opts =
        OptionParser.new do |builder|
          builder.banner = 'usage: mutest [options] MATCH_EXPRESSION ...'
          %i[add_environment_options add_mutation_options add_filter_options add_debug_options].each do |name|
            __send__(name, builder)
          end
        end

      parse_match_expressions(opts.parse!(arguments))
    rescue OptionParser::ParseError => error
      raise(Error, error)
    end
# Parse the command-line options
#
# @param [Array<String>] arguments
#   Command-line options and arguments to be parsed.
#
# @fail [Error]
#   An error occurred while parsing the options.
#
# @return [undefined]
Parse the command-line options
Parse the command - line options
def parse(arguments)
      opts =
        OptionParser.new do |builder|
          builder.banner = 'usage: mutest [options] MATCH_EXPRESSION ...'
          %i[add_environment_options add_mutation_options add_filter_options add_debug_options].each do |name|
            __send__(name, builder)
          end
        end
      parse_match_expressions(opts.parse!(arguments))
    rescue OptionParser::ParseError => error
      raise(Error, error)
    end
def parse ( arguments ) opts = OptionParser . new do | builder | builder . banner = 'usage: mutest [options] MATCH_EXPRESSION ...' %i[ add_environment_options add_mutation_options add_filter_options add_debug_options ] . each do | name | __send__ ( name , builder ) end end parse_match_expressions ( opts . parse! ( arguments ) ) rescue OptionParser :: ParseError => error raise ( Error , error ) end
Parse the command-line options
Parse the command - line options
None
undefined
arguments
arguments Command-line options and arguments to be parsed.
arguments Command - line options and arguments to be parsed .
fail
[Error] An error occurred while parsing the options.
[ Error ] An error occurred while parsing the options .