Here is the magic:
>
You have a program that needs to take in the following parameters:
ruby dbchecker.rb -log /var/log/dbchecker -user wluser -password ch3ckM8
Then use the following code at the top of your script/program:
require 'optiflag' module DBChecker extend OptiFlagSet flag "log" flag "password" flag "user" and_process! end # your code here

