class Thor::Argument

def validate!

def validate!
  if required? && !default.nil?
    fail ArgumentError, 'An argument cannot be required and have default value.'
  elsif @enum && !@enum.is_a?(Array)
    fail ArgumentError, 'An argument cannot have an enum other than an array.'
  end
end