· 1 min read

How To Pipe To A Ruby Command Line Application

You need to read from STDIN rather than parse command line arguments.

while $stdin.gets
    puts $_
end

Comments

Leave a comment