lib/shebang/command.rb
def option(opt)
      opt = opt.to_sym

      options.each do |op|
        if op.short === opt or op.long === opt
          return op.value
        end
      end
    end
def option(opt)
      opt = opt.to_sym

      options.each do |op|
        if op.short === opt or op.long === opt
          return op.value
        end
      end
    end
def option ( opt ) opt = opt . to_sym options . each do | op | if op . short === opt or op . long === opt return op . value end end end
Returns the value of a given option. The option can be specified using
 either the short or long name.

 @example
  puts "Hello #{option(:name)}

 @author Yorick Peterse
 @since  0.1
 @param  [#to_sym] opt The name of the option.
 @return [Mixed]
Returns the value of a given option . The option can be specified using either the short or long name .