--lines option to echo_stdout.rb/echo_stdout.rb
for new tests wanting several lines
This commit is contained in:
parent
1b80605f49
commit
8943e46c44
@ -1,3 +1,9 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
STDERR.puts ARGV.join(" ")
|
||||
if ARGV.size > 0 && ARGV[0] == "--lines"
|
||||
for arg in ARGV[1..-1]
|
||||
STDERR.puts arg
|
||||
end
|
||||
else
|
||||
STDERR.puts ARGV.join(" ")
|
||||
end
|
||||
|
@ -1,3 +1,9 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
puts ARGV.join(" ")
|
||||
if ARGV.size > 0 && ARGV[0] == "--lines"
|
||||
for arg in ARGV[1..-1]
|
||||
puts arg
|
||||
end
|
||||
else
|
||||
puts ARGV.join(" ")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user