def has_option?(option) #:nodoc:
      option = option.gsub(/^\-+/,'')
      ((flags.values.map { |_| [_.name,_.aliases] }) + 
       (switches.values.map { |_| [_.name,_.aliases] })).flatten.map(&:to_s).include?(option)
    end
def has_option?(option) #:nodoc:
      option = option.gsub(/^\-+/,'')
      ((flags.values.map { |_| [_.name,_.aliases] }) + 
       (switches.values.map { |_| [_.name,_.aliases] })).flatten.map(&:to_s).include?(option)
    end
def has_option? ( option ) #:nodoc: option = option . gsub ( / \- / , '' ) ( ( flags . values . map { | _ | [ _ . name , _ . aliases ] } ) + ( switches . values . map { | _ | [ _ . name , _ . aliases ] } ) ) . flatten . map ( :to_s ) . include? ( option ) end
Returns true if this command has the given option defined
Returns true if this command has the given option defined