Todd Werth
Posts: 30
Nickname: twerth
Registered: Feb, 2007
|
Todd Werth is a software designer and programmer in San Francisco
|
|
|
|
A simple Ruby command-line application skeleton
|
Posted: Jan 25, 2008 8:45 AM
|
|
|
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.
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Todd Werth
Latest Posts From InfiniteRed
|
|
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. [...]
Read: A simple Ruby command-line application skeleton
|
|