class Rake::Application
def select_trace_output(options, trace_option, value)
def select_trace_output(options, trace_option, value) value = value.strip unless value.nil? case value when 'stdout' options.trace_output = $stdout when 'stderr', nil options.trace_output = $stderr else fail CommandLineOptionError, "Unrecognized --#{trace_option} option '#{value}'" end end