class Cucumber::Rake::Task

def cucumber_opts_with_profile # :nodoc:

:nodoc:
def cucumber_opts_with_profile # :nodoc:
  Array(cucumber_opts).concat(Array(@profile).flat_map { |p| ['--profile', p] })
end