cmdtest/t/bin/echo_stdout.rb
Johan Holmberg 8943e46c44 --lines option to echo_stdout.rb/echo_stdout.rb
for new tests wanting several lines
2016-06-28 09:02:33 +02:00

10 lines
143 B
Ruby
Executable File

#!/usr/bin/ruby
if ARGV.size > 0 && ARGV[0] == "--lines"
for arg in ARGV[1..-1]
puts arg
end
else
puts ARGV.join(" ")
end