module Maxitest::Testrbl

def partition_argv(argv)

def partition_argv(argv)
  next_is_option = false
  argv.partition do |arg|
    if next_is_option
      next_is_option = false
    else
      if arg =~ /^-.$/ or  arg =~ /^--/ # single letter option followed by argument like -I test or long options like --verbose
        next_is_option = true if OPTION_WITH_ARGUMENT.include?(arg)
        false
      elsif arg =~ /^-/ # multi letter option like -Itest
        false
      else
        true
      end
    end
  end
end