class Cucumber::Cli::ProfileLoader
def args_from(profile)
def args_from(profile) unless cucumber_yml.key?(profile) raise(ProfileNotFound, <<-END_OF_ERROR) not find profile: '#{profile}' d profiles in cucumber.yml: cucumber_yml.keys.sort.join("\n * ")} END_OF_ERROR end args_from_yml = cucumber_yml[profile] || '' case args_from_yml when String if args_from_yml =~ /^\s*$/ raise YmlLoadError, "The '#{profile}' profile in cucumber.yml was blank." \ " Please define the command line arguments for the '#{profile}' profile in cucumber.yml.\n" end args_from_yml = processed_shellwords(args_from_yml) when Array raise YmlLoadError, "The '#{profile}' profile in cucumber.yml was empty. Please define the command line arguments for the '#{profile}' profile in cucumber.yml.\n" if args_from_yml.empty? else raise YmlLoadError, "The '#{profile}' profile in cucumber.yml was a #{args_from_yml.class}. It must be a String or Array" end args_from_yml end