I created a -u, --username switch for the CLI:
opts.on("-u", "--username", "Enter your e-mail username") do |u| options[:username] = uend
and called it (for purposes of testing) by
options = OptparseExample.parse(ARGV)
Now the problem is I wouldn't receive the actual string value that followed the -u or --username switch back.
So -u cktricky came back either nil or true........not much of a help.
After hours of confusion, literally hours, and although I feel pretty ignorant right about now I am going to tell you what the problem was..........(highlighted the change)
opts.on("-u", "--username USERNAME", "Enter your e-mail username") do |u| options[:username] = uend
So, the only change here was that I added USERNAME (could be any string you wanted)........basically I thought the "on" method chose the parameters via comma separation like any normal parameter iteration. Turns out I was wrong. Total and utter weirdness.
With that I am going to go bandage my head :-)