This post originated from an RSS feed registered with Ruby Buzz
by Todd Werth.
Original Post: A simple Ruby command-line application skeleton
Feed Title: InfiniteRed
Feed URL: http://blog.toddwerth.com/entries/feed
Feed Description: Info, screencasts, and other shiny happy things regarding programming in general and ruby in particular.
To write a command-line
application in Ruby is very simple, the following two-line application converts everything in the
standard input to upper case and then outputs it:
#!/usr/bin/env ruby
puts STDIN.read.upcase
Although complete, this is hardly a proper application, which should include options, arguments, help, input
error trapping, etc. [...]