Makes perfect sense in this example you are still looping
through the options. All though this is better on the eyes.
I was hoping that the instance of getoptlong had some kind of
method to get the value of one of the command line options.
Yes, it sucks. That’s why I wrote the ‘getopt’ package.
gem install getopt
opts = Getopt::Long.new([’-d’, ‘–date’, REQUIRED])
This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.