class Thor::Option

def method_missing(method, *args, &block)


Allow some type predicates as: boolean?, string? and etc.
def method_missing(method, *args, &block)
  given = method.to_s.sub(/\?$/, '').to_sym
  if valid_type?(given)
    self.type == given
  else
    super
  end
end