class Thor::Argument
def validate!
def validate! if required? && !default.nil? raise ArgumentError, "An argument cannot be required and have default value." elsif @enum && !@enum.is_a?(Array) raise ArgumentError, "An argument cannot have an enum other than an array." end end