Building Unix Tools with Ruby (O'ReillyNet)
[Posted September 19, 2003 by ris]
O'ReillyNet
takes
a look at building tools with Ruby. "
Once you have a properly
initiated instance of the option parser, you can add code to checks which
options have been selected and what mistakes have been made. GetoptLong
provides a lot of help here; your job is limited to defining a few global
variables and handling any errors that may occur at this stage."
(
Log in to post comments)